Experiments >

Animated scrolling

Experiment #112nd March, 2021by Joshua Nussbaum

Continuing on with the animated code editor. I added the ability to scroll vertically and horizontally. The cool thing is it uses Svelte’s tweened store, so the scroll effect has easing and duration. As opposed to changing instantly, which would be jarring.

Here’s the code:


Here’s what it looks like:


view all experiments

Stay tuned in

Learn how to add more experimentation to your workflow