Email or username:

Password:

Forgot your password?
Adam Argyle

scroll snap + scroll driven animation carousel

💡 in the mobile size it looks a lot like the iOS app switcher eh?

try it!?

codepen.io/argyleink/pen/MWMQJ

↪ nerdy.dev/container-query-caro

3 comments
Morgan Davis

@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?

Adam Argyle

@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

Go Up