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:

joshnuss/svelte-codemirror-test@c4a45c0

Here’s what it looks like:

Animation

view all experiments

Stay tuned in

Learn how to add more experimentation to your workflow