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: