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: