When we’re scrolling down a page, or through a gallery of images, snap-targets can help guide us from one section or image to the next. In the past, developers have used JavaScript to hijack scrolling, but now we can manage scroll alignment directly in CSS with only a few lines of code. The fallback even works well in old browsers! Miriam Suzanne shows you how.
Image Gallery Demo:
Page Sections Demo:
More on MDN:
#css #scrollsnap #miriamsuzanne
1 view
1087
359
3 months ago 00:29:35 1
FunOS | A Balance of Features and Functionality With Low-resource Usage
4 months ago 00:14:39 32
Sequoia Pro 17 Navigation | Eric Burgess
4 months ago 00:05:24 1
Eminem - Lose Yourself [HD] - Joker
4 months ago 00:28:52 1
antiX 23.2 Linux – Proudly Anti-fascist “Antix Magic“ in an Environment Suitable for Old and New PC
5 months ago 00:04:34 1
LES NOUVELLES P*TES DE TIKTOK
5 months ago 00:03:26 1
TCHIKITA REJOINT LES P*TES SUR MYM
5 months ago 00:01:00 1
Слайдер на чистом CSS? Хватит и двух строчек! Свойства scroll-snap
5 months ago 00:38:03 1
Lubuntu LTS | Supported for 3 Years Until April 2027 | 26th Release of Lubuntu
5 months ago 00:40:36 1
A First Look At Kubuntu LTS Supported With Security & Maintenance Updates, Until April 2027
6 months ago 00:30:25 26
a productive SUNDAY RESET VLOG🌷 deep clean with me, room makeover, organising for spring, kmart trip
6 months ago 00:25:30 1
A New OS Has Been Dropped Ultimate Arch Lite
6 months ago 00:32:09 1
RefreshOS 2.0 (Boundless Beagle)
6 months ago 00:31:42 1
Pearl MATE Studio 12 | Mac OS X Looking Desktop | Ubuntu Base With No Snap Support