scroll snap + scroll driven animation carousel
💡 in the mobile size it looks a lot like the iOS app switcher eh?
try it!?
https://codepen.io/argyleink/pen/MWMQJQy
↪ https://nerdy.dev/container-query-carousel-with-scroll-driven-animation
scroll snap + scroll driven animation carousel 💡 in the mobile size it looks a lot like the iOS app switcher eh? try it!? https://codepen.io/argyleink/pen/MWMQJQy ↪ https://nerdy.dev/container-query-carousel-with-scroll-driven-animation 3 comments
@mdavis they'll support SDA, they deploy so many scroll animations. it's too rad (and off the main thread) shouldn't be too hard to have the tapped item scroll and be snapped: `event.target.scrollIntoView()` should do the trick |
@argyleink
Ironically, doesn’t work on iOS. :-)
Now, for extra credit… how can you detect a click on one of the edges of the cards in the back of the stack and have it scroll-snap to that card in the foreground position?