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: https://codepen.io/mirisuzanne/pen/bX...
Page Sections Demo: https://codepen.io/mirisuzanne/pen/vo...
More on MDN: https://developer.mozilla.org/en-US/d...
#css #scrollsnap #miriamsuzanne
In questa pagina del sito puoi guardare il video online Scroll Snap in CSS Instead of JavaScript della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Mozilla Developer 31 ottobre 2019, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 21,617 volte e gli è piaciuto 944 spettatori. Buona visione!