notejs
Play a 🫰(snap) when CSS snaps!
const snap = new Audio('snap.mp3')
scroller.onscrollsnapchange = () =>
snap.play()
Note: you may need to click/tap before scrolling, for the browser to deem playing the audio as user activated.
Play a 🫰(snap) when CSS snaps!
const snap = new Audio('snap.mp3')
scroller.onscrollsnapchange = () =>
snap.play()
Note: you may need to click/tap before scrolling, for the browser to deem playing the audio as user activated.
Play a snap sound when #CSS snaps ???? snap on snap! meta snap! ⤷ nerdy.dev/snap-on-snapAdam Argyle
Egor Kloos@argyleink At some point you're going to be called Adam Snap Argyle. ????
Jak2k@argyleink Would it be possible to make it also snap when it moves over a snap point?
Crawl the CSS Webring‽