Svelte in Motion
summary
Builds a small Svelte image viewer and adds concrete motion: scroll-snap in two CSS lines to make carousels responsive, Svelte's built-in fly transition (x 500 → x -150, 250ms) for page changes, and a lightbox implemented with position:fixed, boundingClientRect, requestAnimationFrame and two springs for scale and opacity. Springs use stiffness 9.2 and set opacity to 0.95; animations run smoothly in production and remain cancelable for low-latency, native-feeling interaction.
AI-written summary · about
chapters (6)
- 0:00Introduction to motion
- 3:17The sample application
- 3:49CSS scroll snapping
- 7:13Svelte page transitions
- 11:28Advanced spring animations
- 37:12Conclusion and best practices
related talks
10mSvelte Transitions and Accessibility
24mSvelte: the last framework we need?
40mSvelte, cybernetically enhanced web apps
40mSvelte is Fast and Makes You Faster
53mSvelte, cybernetically enhanced web apps
39mModern CSS for Creative Developers
45mCSS tried to come for my Job
30mState animations Getting them right
