ul

The impact of cross-linker distribution on magnetic nanogels: encapsulation, transport and controlled release of the tracer

Soft Matter, 2024, Advance Article
DOI: 10.1039/D4SM00797B, Paper
Open Access
Ivan S. Novikau, Ekaterina V. Novak, Sofia S. Kantorovich
Differences in crosslinker concentration between the core and periphery of a magnetic nanogel slow down the release of a non-magnetic cargo.
To cite this article before page numbers are assigned, use the DOI form of citation above.
The content of this RSS Feed (c) The Royal Society of Chemistry




ul

Stress amplification and relaxation imaging around cracks in nanocomposite gels using ultrasound elastography

Soft Matter, 2024, Advance Article
DOI: 10.1039/D4SM00909F, Paper
H. Le Blay, T. Deffieux, L. Laiarinandrasana, M. Tanter, A. Marcellan
Stress visualization around cracks in NC gels was performed using ultrasonic elastography. Temporal and spatial mapping are performed non-invasively. Over time, the stress gradient is erased by large-scale reorganization of the polymer network.
To cite this article before page numbers are assigned, use the DOI form of citation above.
The content of this RSS Feed (c) The Royal Society of Chemistry




ul

Network interactions simultaneously enhance stiffness and lubricity of triple-network hydrogels

Soft Matter, 2024, Advance Article
DOI: 10.1039/D4SM00969J, Paper
Nabila Ali, Connor J. Demott, Olivia F. Dingus, Melissa A. Grunlan, Alison C. Dunn
Tough hydrogels with a charge-variable third network were assessed for biomimicking lubricity in both water and FBS solution.
To cite this article before page numbers are assigned, use the DOI form of citation above.
The content of this RSS Feed (c) The Royal Society of Chemistry




ul

Carboxymethyl cellulose-stabilized calcium phosphate particles for injectable hydrogel-based bone tissue engineering

Soft Matter, 2024, Advance Article
DOI: 10.1039/D4SM00670D, Paper
Piyaporn Srisura, Yuwaporn Pinyakit, Umphan Ngoensawat, Pongsakorn Yuntasiri, Khoiria Nur Atika Putri, Theerapat Chanamuangkon, Waranyoo Phoolcharoen, Varol Intasanta, Voravee P. Hoven
Carboxymethyl cellulose-stabilized calcium phosphate particles well-dispersed in aqueous solution can be integrated into an injectable hydrogel made of methacrylated hyaluronic acid which is a promising material for bone regeneration applications.
To cite this article before page numbers are assigned, use the DOI form of citation above.
The content of this RSS Feed (c) The Royal Society of Chemistry




ul

Bubble dynamics manipulation in polymeric foaming

Soft Matter, 2024, Advance Article
DOI: 10.1039/D4SM01040J, Paper
Open Access
  This article is licensed under a Creative Commons Attribution 3.0 Unported Licence.
Lorenzo Miele, Antonio Abate, Kentaro Taki, Ernesto Di Maio
The inverse pressure quenching treatment is proposed to decouple bubble nucleation from growth, advancing our understanding of the physics governing bubble growth and evolution in polymer foaming.
To cite this article before page numbers are assigned, use the DOI form of citation above.
The content of this RSS Feed (c) The Royal Society of Chemistry




ul

A macroscopic magneto-optical response resulting from local effects in ferronematic liquid crystals

Soft Matter, 2024, 20,8363-8372
DOI: 10.1039/D4SM00577E, Paper
Xiangshen Meng, Xiaowei Li, Jian Li, Yueqiang Lin, Xiaodong Liu, Zhenghong He
The dynamic rotational behavior of composite chains under a rotating magnetic field was observed. The birefringence and dichroism variations in FNLCs mainly stem from the magnetic response of the composite chains, indicating local effects.
The content of this RSS Feed (c) The Royal Society of Chemistry




ul

Emulsifying mechanisms of phospholipids in high-pressure homogenization of perfluorocarbon nanoemulsions

Soft Matter, 2024, 20,8373-8384
DOI: 10.1039/D4SM00828F, Paper
Open Access
  This article is licensed under a Creative Commons Attribution 3.0 Unported Licence.
Larissa J. Lubitz, Harden Rieger, Gero Leneweit
An optimized PFC/W emulsion contains 1 mM lipid per 1% (v/v) dispersed phase for an emulsifying monolayer; higher ratios result in triple layers. Low viscosity ratios ηD/ηC ≤ 5 and low PFC volume fractions lead to smaller monodisperse droplets.
The content of this RSS Feed (c) The Royal Society of Chemistry




ul

The cellular Potts model on disordered lattices

Soft Matter, 2024, 20,8337-8352
DOI: 10.1039/D4SM00445K, Paper
Open Access
  This article is licensed under a Creative Commons Attribution 3.0 Unported Licence.
Hossein Nemati, J. de Graaf
Extending the cellular Potts model to disordered Voronoi lattices reduces artifacts observed on regular lattices. An order–disorder transition is observed as a function of surface tension on the disordered lattice and the regular lattices.
The content of this RSS Feed (c) The Royal Society of Chemistry




ul

Bubbles and drops between circular frames: shape, force and stability analysis

Soft Matter, 2024, 20,8420-8435
DOI: 10.1039/D4SM00919C, Paper
Open Access
Friedrich Walzel, Jonathan Dijoux, Leandro Jacomine, Élodie Harle, Pierre Muller, Thierry Charitat, Wiebke Drenckhan
Combining experiments, simulations and theory, we provide a complete shape analysis of two bubbles held by circular frames in the parameter space of different frame radii, distances between frames and contact angle between bubbles (0°, 60° and 90°).
The content of this RSS Feed (c) The Royal Society of Chemistry




ul

Nanoconfinement effects on the dynamics of an ionic liquid-based electrolyte probed by multinuclear NMR

Soft Matter, 2024, 20,8436-8445
DOI: 10.1039/D4SM01058B, Paper
Open Access
  This article is licensed under a Creative Commons Attribution 3.0 Unported Licence.
Andrei Filippov, Maiia Rudakova, Victor P. Archipov, Faiz Ullah Shah
Diffusivity is controlled by exchange of ions between “narrow” and “large” pores that results in an abnormal temperature variation. Li+ ions are solvated inside the porous glasses and their diffusivity remains slower as compared to the organic ions.
The content of this RSS Feed (c) The Royal Society of Chemistry




ul

Development of a coarse-grained molecular dynamics model for poly(dimethyl-co-diphenyl)siloxane

Soft Matter, 2024, 20,8480-8492
DOI: 10.1039/D4SM00875H, Paper
Weikang Xian, Amitesh Maiti, Andrew P. Saab, Ying Li
Polydimethylsiloxane and its copolymer systems have a wide range of application. We systematically develop a coarse-grained MD model for PDMS-co-PDPS system. The model preserves the structural and dynamic properties of the material quantitatively.
The content of this RSS Feed (c) The Royal Society of Chemistry




ul

Optimality and cooperativity in superselective surface binding by multivalent DNA nanostars

Soft Matter, 2024, 20,8515-8523
DOI: 10.1039/D4SM00704B, Paper
Open Access
  This article is licensed under a Creative Commons Attribution 3.0 Unported Licence.
Christine Linne, Eva Heemskerk, Jos W. Zwanikken, Daniela J. Kraft, Liedewij Laan
Our study shows that DNA nanostars with three binding sites (ligands) can (1) bind superselectively to surfaces based on receptor density, and (2) that interactions between ligands affect the optimum number of ligands required for superselectivity.
The content of this RSS Feed (c) The Royal Society of Chemistry




ul

pH and glucose dual-responsive phenylboronic acid hydrogels for smart insulin delivery

Soft Matter, 2024, Advance Article
DOI: 10.1039/D4SM01004C, Paper
Keke Yang, Hou Bo, Dewei Ma, Mingwei Peng, Qinglong Liu, Ziwen Heng, Zhongwei Gu, Xuhan Liu, Siyuan Chen
Phenylboronic acid (PBA) is a widely exploited glucose-sensitive element for constructing glucose-responsive hydrogels to enable smart insulin delivery.
To cite this article before page numbers are assigned, use the DOI form of citation above.
The content of this RSS Feed (c) The Royal Society of Chemistry




ul

Retraction: Self-assembled organic nanotubes embedding hydrophobic molecules within solid bilayer membranes

Soft Matter, 2024, Advance Article
DOI: 10.1039/D4SM90171A, Retraction
Open Access
  This article is licensed under a Creative Commons Attribution 3.0 Unported Licence.
Naohiro Kameta, Masumi Asakawa, Mitsutoshi Masuda, Toshimi Shimizu
To cite this article before page numbers are assigned, use the DOI form of citation above.
The content of this RSS Feed (c) The Royal Society of Chemistry




ul

Retraction: Supramolecular organic nanotubes: how to utilize the inner nanospace and the outer space

Soft Matter, 2024, Advance Article
DOI: 10.1039/D4SM90172J, Retraction
Open Access
  This article is licensed under a Creative Commons Attribution 3.0 Unported Licence.
Naohiro Kameta, Hiroyuki Minamikawa, Mitsutoshi Masuda
To cite this article before page numbers are assigned, use the DOI form of citation above.
The content of this RSS Feed (c) The Royal Society of Chemistry




ul

Modeling nematic phase main-chain liquid crystal elastomer synthesis, mechanics, and thermal actuation via coarse-grained molecular dynamics

Soft Matter, 2024, Accepted Manuscript
DOI: 10.1039/D4SM00528G, Paper
Nicolas Herard, Raja Annapooranan, Todd Henry, Martin Kroger, Shengqiang Cai, Nicholas Boechler, Yelena Sliozberg
This paper presents a coarse-grained molecular dynamics simulation study of the synthesis, mechanics, and thermal actuation of nematic phase main-chain liquid crystal elastomers (LCEs), a type of soft, temperature-responsive, polymeric...
The content of this RSS Feed (c) The Royal Society of Chemistry




ul

Thickness-dependent response of aerosol-jet-printed ultrathin high-aspect-ratio electrochemical microactuators

Soft Matter, 2024, Accepted Manuscript
DOI: 10.1039/D4SM00886C, Paper
Open Access
  This article is licensed under a Creative Commons Attribution 3.0 Unported Licence.
Ji Zhang, Jeremy J. Baumberg, Sohini Kar-Narayan
Trilayer electrochemical actuators comprising an electrolyte layer sandwiched between two electrode layers have been shown to exhibit large deformations at low actuation voltages. Here we report aerosol-jet printing (AJP) of...
The content of this RSS Feed (c) The Royal Society of Chemistry




ul

Aging iridium oxide catalyst inks: a formulation strategy to enhance ink processability for polymer electrolyte membrane water electrolyzers

Soft Matter, 2024, Advance Article
DOI: 10.1039/D4SM00987H, Paper
Open Access
  This article is licensed under a Creative Commons Attribution 3.0 Unported Licence.
Sunilkumar Khandavalli, Jae Hyung Park, Robin Rice, Diana Y. Zhang, Sarah A. Berlinger, Guido Bender, Deborah J. Myers, Michael Ulsh, Scott A. Mauger
Steady-shear rheology showing evolution of the microstructure of iridium oxide catalyst inks of PEM water electrolyzers with aging time.
To cite this article before page numbers are assigned, use the DOI form of citation above.
The content of this RSS Feed (c) The Royal Society of Chemistry




ul

Revealing microscale bulk structures in polymer–carbon nanocomposites using spin-echo SANS

Soft Matter, 2024, 20,8663-8674
DOI: 10.1039/D4SM00578C, Paper
Open Access
  This article is licensed under a Creative Commons Attribution 3.0 Unported Licence.
L. V. Tiihonen, M. P. Weir, A. J. Parnell, S. C. Boothroyd, D. W. Johnson, R. M. Dalgliesh, M. Bleuel, C. P. Duif, W. G. Bouwman, R. L. Thompson, K. S. Coleman, N. Clarke, W. A. Hamilton, A. L. Washington, S. R. Parnell
Spin-echo small-angle neutron scattering (SESANS) revealed structure in polymer–carbon nanocomposites over multiple length scales with unprecedented range (10 nm–16 μm). Data from two SESANS instruments and other methods were analysed with SasView.
The content of this RSS Feed (c) The Royal Society of Chemistry




ul

Pickering emulsions for stimuli-responsive transdermal drug delivery: effect of rheology and microstructure on performance

Soft Matter, 2024, 20,8621-8637
DOI: 10.1039/D4SM00993B, Paper
Open Access
  This article is licensed under a Creative Commons Attribution 3.0 Unported Licence.
Simona Migliozzi, Yiting He, Maryam Parhizkar, Yang Lan, Panagiota Angeli
Elucidating the impact of microgels attributes on the microstructure, rheology and functionality of Pickering emulsions.
The content of this RSS Feed (c) The Royal Society of Chemistry




ul

Confined bicontinuous microemulsions: nanoscale dynamics of the surfactant film

Soft Matter, 2024, 20,8692-8701
DOI: 10.1039/D4SM00925H, Paper
Open Access
  This article is licensed under a Creative Commons Attribution 3.0 Unported Licence.
Margarethe Dahl, Olaf Holderer, René Haverkamp, Ingo Hoffmann, Kathleen Wood, Jessica Hübner, Thomas Hellweg, Stefan Wellert
A confined bicontinuous C10E4–D2O–n-octane microemulsion is studied using neutron spin echo spectroscopy (NSE). The pore size of the confining matrices determines the dynamics of the confined bicontinuous microemulsion.
The content of this RSS Feed (c) The Royal Society of Chemistry




ul

Hydrophobic fouling-resistant electrospun nanofiber membranes from poly(vinylidene fluoride)/polyampholyte blends

Soft Matter, 2024, 20,8654-8662
DOI: 10.1039/D4SM00817K, Paper
Anuja S. Jayasekara, Luca Mazzaferro, Ryan O’Hara, Ayse Asatekin, Peggy Cebe
This study reports the fabrication of non-woven fibrous membranes from electrospinning blended solutions of PVDF with a random polyampholyte amphiphilic copolymer (r-PAC) in N,N-dimethylformamide and methanol.
The content of this RSS Feed (c) The Royal Society of Chemistry




ul

Bending of polymer films: a method for obtaining a compressive modulus of thin films

Soft Matter, 2024, 20,8589-8600
DOI: 10.1039/D4SM00084F, Paper
Akihiro Ohara, Ko Okumura
We constructed a theory and method for measuring the compressive modulus by combining tensile and bending tests. Elastic asymmetry was confirmed in an industrial PET film.
The content of this RSS Feed (c) The Royal Society of Chemistry




ul

Light scattering study of algal floc growth and structure: alum vs. polymeric plant-derived flocculant

Soft Matter, 2024, Advance Article
DOI: 10.1039/D4SM00837E, Paper
Temitope Orimolade, Ngoc-Tram Le, Lyle Trimble, Bandaru Ramarao, Sitaraman Krishnan
Algal flocculation using alum shows dynamic fractal restructuring over time, while Moringa oleifera protein induces faster densification, enhancing floc strength.
To cite this article before page numbers are assigned, use the DOI form of citation above.
The content of this RSS Feed (c) The Royal Society of Chemistry




ul

The role of macrocycles in supramolecular assembly with polymers

Soft Matter, 2024, 20,8549-8560
DOI: 10.1039/D4SM01053A, Review Article
Ruslan Kashapov, Yuliya Razuvayeva, Elena Fedorova, Lucia Zakharova
Supramolecular self-assembly of polymers with macrocycles has attracted the attention because it enables the spontaneous creation of nanostructures with unique properties.
The content of this RSS Feed (c) The Royal Society of Chemistry




ul

Thin free-standing liquid films manipulation: device design to turn on/off gravity in flow regimes for thickness map control and for material structuring

Soft Matter, 2024, Advance Article
DOI: 10.1039/D4SM00951G, Paper
Open Access
  This article is licensed under a Creative Commons Attribution 3.0 Unported Licence.
Paolo Iaccarino, Zhe Wang, Andrea Marfuggi, Simone Russo, Vincenzo Ferraro, Giuseppe Vitiello, Sara Coppola, Ernesto Di Maio
We design a device to control liquid film drainage, able to switch between viscous-capillary and viscous-gravity regimes to stabilize thickness and modify particle arrangement, offering potential for film studies and 2D structure fabrication.
To cite this article before page numbers are assigned, use the DOI form of citation above.
The content of this RSS Feed (c) The Royal Society of Chemistry




ul

Hydrogel-based 3D fabrication of multiple replicas with varying sizes and materials from a single template via iterative shrinking

Soft Matter, 2024, Accepted Manuscript
DOI: 10.1039/D4SM00835A, Paper
Eunseok Heo, Hye Been Koo, Jun Chang Yang, In Cho, Hyun-Hee Lee, Yong-Jin Yoon, Steve Park, Jae-Byum Chang
3D printing technologies have been widely used for the rapid prototyping of 3D structures, but their application in a broader context has been hampered by their low printing throughput. For...
The content of this RSS Feed (c) The Royal Society of Chemistry




ul

Co-assembly of Cellulose Nanocrystals and Gold Nanorods: Insights from Molecular Dynamics Modelling

Soft Matter, 2024, Accepted Manuscript
DOI: 10.1039/D4SM00871E, Paper
Open Access
  This article is licensed under a Creative Commons Attribution 3.0 Unported Licence.
Jiaxin Hou, William W Sampson, Ahu Gumrah Dumanli
A coarse-grained molecular dynamics model is developed to explore the co-assembly of cellulose nanocrystals (CNCs) and gold nanorods (AuNRs) under sedimentation conditions with varying vol- umetric concentration and particle-size ratios....
The content of this RSS Feed (c) The Royal Society of Chemistry




ul

Dynamics of switching processes: general results and applications to intermittent active motion

Soft Matter, 2024, Accepted Manuscript
DOI: 10.1039/D4SM01054J, Paper
Open Access
  This article is licensed under a Creative Commons Attribution 3.0 Unported Licence.
Ion Santra, Deepak Gupta, Kristian S Olsen
Systems switching between different dynamical phases is an ubiquitous phenomenon. The general understanding of such a process is limited. To this end, we present a general expression that captures fluctuations...
The content of this RSS Feed (c) The Royal Society of Chemistry




ul

Supramolecular chiroptical sensing of chiral species based on circularly polarized luminescence

Soft Matter, 2024, Advance Article
DOI: 10.1039/D4SM00960F, Review Article
Panyang Chen, Huahua Fan, Sifan Du, Xin Wen, Li Zhang, Minghua Liu
Chiral analytes can bind to an achiral fluorescent system to generate circularly polarized luminescence (CPL). Subsequently, the CPL signal can be employed to determine the absolute configuration of the chiral substrate.
To cite this article before page numbers are assigned, use the DOI form of citation above.
The content of this RSS Feed (c) The Royal Society of Chemistry




ul

Tribocharging of granular materials flowing in grounded inclined tubes

Soft Matter, 2024, Advance Article
DOI: 10.1039/D4SM01082E, Paper
Nicolas Preud’homme, Julien Schockmel, Eric Opsomer, Geoffroy Lumay
Numerical simulations using the patch model and the method of image charges, validated against experiments, show that tribocharging in granular materials within inclined grounded tubes depends on the tube's tilt angle and length.
To cite this article before page numbers are assigned, use the DOI form of citation above.
The content of this RSS Feed (c) The Royal Society of Chemistry




ul

Reversible pH-responsive supramolecular aggregates from viologen based amphiphiles – A molecular design perspective

Soft Matter, 2024, Accepted Manuscript
DOI: 10.1039/D4SM00695J, Paper
Redhills L. Narendran, Archita Patnaik
pH responsive self-assembled supramolecular systems in water hold tremendous promise spanning across the various realms of science and technology. Herein, we report the design and synthesis of benzyl viologen (BV)...
The content of this RSS Feed (c) The Royal Society of Chemistry




ul

A multi-scale framework for predicting α-cyclodextrin assembly on polyethylene glycol axles

Soft Matter, 2024, Advance Article
DOI: 10.1039/D4SM01048E, Paper
Open Access
Cameron D. Smith, Chenfeng Ke, Wenlin Zhang
We predict the assembly and time-dependent distribution of cyclodextrin along PEG axles by combining atomistic molecular dynamics with an analytical treatment of bulk diffusion. Our kinetic Monte Carlo can aid in the design of polypseudorotaxanes.
To cite this article before page numbers are assigned, use the DOI form of citation above.
The content of this RSS Feed (c) The Royal Society of Chemistry




ul

Obstacle-enhanced spontaneous oscillation of confined active granules

Soft Matter, 2024, Advance Article
DOI: 10.1039/D4SM01027B, Paper
Xue Zhang, Yuxin Tian, Ran Ni, Yong Zhu, Luhui Ning, Peng Liu, Mingcheng Yang, Ning Zheng
Obstacle-enhanced spontaneous oscillation of confined active granules. (a) Without obstacles. (b) With obstacles.
To cite this article before page numbers are assigned, use the DOI form of citation above.
The content of this RSS Feed (c) The Royal Society of Chemistry




ul

Scale-dependent sharpening of interfacial fluctuations in shape-based models of dense cellular sheets

Soft Matter, 2024, Accepted Manuscript
DOI: 10.1039/D4SM00804A, Paper
Haicen Yue, Charles Packard, Daniel Sussman
The properties of tissue interfaces – between separate populations of cells, or between a group of cells and its environment – has attracted intense theoretical, computational, and experimental study. Recent...
The content of this RSS Feed (c) The Royal Society of Chemistry




ul

Self-consistent electrostatic formalism of bulk electrolytes based on the asymmetric treatment of the short- and long-range ion interactions

Soft Matter, 2024, Advance Article
DOI: 10.1039/D4SM01174K, Paper
Sahin Buyukdagli
Internal energy of monovalent electrolytes (left) and dimensionless screening parameter of multivalent electrolytes (right).
To cite this article before page numbers are assigned, use the DOI form of citation above.
The content of this RSS Feed (c) The Royal Society of Chemistry




ul

Beautiful Scrolling Experiences – Without Libraries

Michelle Barker appears as one of a heavenly host, coming forth with scroll in hand to pronounce an end to janky scrolljacking! Unto us a new specification is born, in the city of TimBL, and its name shall be called Scroll Snap.


Sponsor: Order any Standard paperback(s) and get a surprise gift card in the box for YOU. While supplies last, from your pals at A Book Apart!


One area where the web has traditionally lagged behind native platforms is the perceived “slickness” of the app experience. In part, this perception comes from the way the UI responds to user interactions – including the act of scrolling through content.

Faced with the limitations of the web platform, developers frequently reach for JavaScript libraries and frameworks to alter the experience of scrolling a web page – sometimes called “scroll-jacking” – not always a good thing if implemented without due consideration of the user experience. More libraries can also lead to page bloat, and drag down a site’s performance. But with the relatively new CSS Scroll Snap specification, we have the ability to control the scrolling behaviour of a web page (to a degree) using web standards – without resorting to heavy libraries. Let’s take a look at how.

Scroll Snap

A user can control the scroll position of a web page in a number of ways, such as using a mouse, touch gesture or arrow keys. In contrast to a linear scrolling experience, where the rate of scroll reflects the rate of the controller, the Scroll Snap specification enables a web page to snap to specific points as the user scrolls. For this, we need a fixed-height element to act as the scroll container, and the direct children of that element will determine the snap points. To demonstrate this, here is some example HTML, which consists of a <div> containing four <section> elements:

<div class="scroll-container">
  <section>
    <h2>Section 1</h2>
  </section>
  <section>
    <h2>Section 2</h2>
  </section>
  <section>
    <h2>Section 3</h2>
  </section>
  <section>
    <h2>Section 4</h2>
  </section>
</div>

Scroll snapping requires the presence of two main CSS properties: scroll-snap-type and scroll-snap-align. scroll-snap-type applies to the scroll container element, and takes two keyword values. It tells the browser:

  • The direction to snap
  • Whether snapping is mandatory

scroll-snap-align is applied to the child elements – in this case our <section>s.

We also need to set a fixed height on the scroll container, and set the relevant overflow property to scroll.

.scroll-container {
  height: 100vh;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
}

section {
  height: 100vh;
  scroll-snap-align: center;
}

In the above example, I’m setting the direction in the scroll-snap-type property to y to specify vertical snapping. The second value specifies that snapping is mandatory. This means that when the user stops scrolling their scroll position will always snap to the nearest snap point. The alternative value is proximity, which determines that the user’s scroll position will be snapped only if they stop scrolling in the proximity of a snap point. (It’s down to the browser to determine what it considers to be the proximity threshold.)

If you have content of indeterminate length, which might feasibly be larger than the height of the scroll container (in this case 100vh), then using a value of mandatory can cause some content to be hidden above or below the visible area, so is not recommended. But if you know that your content will always fit within the viewport, then mandatory can produce a more consistent user experience.

See the Pen Simple scroll-snap example by Michelle Barker (@michellebarker) on CodePen.

In this example I’m setting both the scroll container and each of the sections to a height of 100vh, which affects the scroll experience of the entire web page. But scroll snapping can also be implemented on smaller components too. Setting scroll snapping on the x-axis (or inline axis) can produce something like a carousel effect.

In this demo, you can scroll horizontally scroll through the sections:

See the Pen Carousel-style scroll-snap example by Michelle Barker (@michellebarker) on CodePen.

The Intersection Observer API

By implementing the CSS above, our web page already has a more native-like feel to it. To improve upon this further we could add some scroll-based transitions and animations. We’ll need to employ a bit of Javascript for this, using the Intersection Observer API. This allows us to create an observer that watches for elements intersecting with the viewport, triggering a callback function when this occurs. It is more efficient than libraries that rely on continuously listening for scroll events.

We can create an observer that watches for each of our scroll sections coming in and out of view:

const sections = [...document.querySelectorAll('section')]

const options = {
  rootMargin: '0px',
  threshold: 0.25
}

const callback = (entries) => {
  entries.forEach((entry) => {
    if (entry.intersectionRatio >= 0.25) {
      target.classList.add("is-visible");
    } else {
      target.classList.remove("is-visible");
    }
  })
}

const observer = new IntersectionObserver(callback, options)

sections.forEach((section, index) => {
  observer.observe(section)
})

In this example, a callback function is triggered whenever one of our sections intersects the container by 25% (using the threshold option). The callback adds a class of is-visible to the section if it is at least 25% in view when the intersection occurs (which will take effect when the element is coming into view), and removes it otherwise (when the element is moving out of view). Then we can add some CSS to transition in the content for each of those sections:

section .content {
  opacity: 0:
}

section.is-visible .content {
  opacity: 1;
  transition: opacity 1000ms:
}

This demo shows it in action:

See the Pen Scrolling with Intersection Observer by Michelle Barker (@michellebarker) on CodePen.

You could, of course, implement some much more fancy transition and animation effects in CSS or JS!

As an aside, it’s worth pointing out that, in practice, we shouldn’t be setting opacity: 0 as the default without considering the experience if JavaScript fails to load. In this case, the user would see no content at all! There are different ways to handle this: We could add a .no-js class to the body (which we remove on load with JS), and set default styles on it, or we could set the initial style (before transition) with JS instead of CSS.

Position: sticky

There’s one more CSS property that I think has the potential to aid the scroll experience, and that’s the position property. Unlike position: fixed, which locks the position of an element relative to the nearest relative ancestor and doesn’t change, position: sticky is more like a temporary lock. An element with a position value of sticky will become fixed only until it reaches the threshold of its parent, at which point it resumes relative positioning.

By “sticking” some elements within scroll sections we can give the impression of them being tied to the action of scrolling between sections. It’s pretty cool that we can instruct an element to respond to it’s position within a container with CSS alone!

Browser support and fallbacks

The scroll-snap-type and scroll-snap-align properties are fairly well-supported. The former requires a prefix for Edge and IE, and older versions of Safari do not support axis values. In newer versions of Safari it works quite well. Intersection Observer similarly has a good level of support, with the exception of IE.

By wrapping our scroll-related code in a feature query we can provide a regular scrolling experience as a fallback for users of older browsers, where accessing the content is most important. Browsers that do not support scroll-snap-type with an axis value would simply scroll as normal.

@supports (scroll-snap-type: y mandatory) {
  .scroll-container {
    height: 100vh;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
  }

  section {
    height: 100vh;
    scroll-snap-align: center;
  }
}

The above code would exclude MS Edge and IE, as they don’t support axis values. If you wanted to support them you could do so using a vendor prefix, and using @supports (scroll-snap-type: mandatory) instead.

Putting it all together

This demo combines all three of the effects discussed in this article.

Summary

Spending time on scroll-based styling might seem silly or frivolous to some. But I believe it’s an important part of positioning the web as a viable alternative to native applications, keeping it open and accessible. While these new CSS features don’t offer all of the control we might expect with a fully featured JS library, they have a major advantage: simplicity and reliability. By utilising web standards where possible, we can have the best of both worlds: Slick and eye-catching sites that satisfy clients’ expectations, with the added benefit of better performance for users.


About the author

Michelle is a Lead Front End Developer at Bristol web agency Atomic Smash, author of front-end blog CSS { In Real Life }, and a Mozilla Tech Speaker. She has written articles for CSS Tricks, Smashing Magazine, and Web Designer Magazine, to name a few. She enjoys experimenting with new CSS features and helping others learn about them.

More articles by Michelle




ul

I set my own rules: Sabyasachi Mukherjee

Designers must create new templates that suit their creativity instead of allowing the market to set the pace for them, says Sabyasachi Mukherjee, who will present his collection at the finale of Lakme Fashion Week.




ul

Tulsi goes to LFW

Armed with saris and lehengas of all hues, the Chennai brand is set to make a splash at the fashion week




ul

An unfulfilled dream

Sagar Tenali, whose demise has left the city’s fashion fraternity in shock, had dreamt of showcasing his work at Lakme Fashion Week




ul

Bulgari’s flat world comes to Chennai

The Italian luxury brand makes a stop as it takes its ultra-thin Octo Finissimo watches to key Indian cities



  • Life &amp; Style

ul

Neeta Lulla on ‘Shaakuntalam’: Samantha Ruth Prabhu’s outfits are simple yet alluring

Designer Neeta Lulla on the fairytale-like silhouettes for Samantha Ruth Prabhu’s mythological romance drama ‘Shaakuntalam’




ul

On a world stage: Inside the Nita Mukesh Ambani Cultural Centre in Mumbai

A massive, multi-disciplinary cultural space is now open in Mumbai, with a global outlook and a vision to foster and promote Indian arts




ul

Rahul Gandhi, the Mr Cool Guy!




ul

Beautiful, naturally

Blossom Kochhar says if you can eat it, it can be used on your face.




ul

Give the cauliflower diet a go

Among the endless low-carb, paleo diets for weight loss is the cauliflower diet, which is healthy and doesn’t compromise on taste, says Radha Thomas




ul

A handful of health

Learn some lesser-known facts about almonds




ul

Yoga with a dose of mindfulness

Bend into a pretzel, if you can, but do so with a better understanding of yoga




ul

Consultation, just a flick away

Here is a look at how technology is getting people connected to healthcare, thanks to your Smartphone




ul

Sculpting muscles and dreams

Mr.Madurai contest has been shaping the ideals and aspirations of city body builders. A.SHRIKUMAR takes a peek into what goes on behind the stage