Scroll to element with smooth animation. Lightweight library for Svelte. No dependencies! Pure Svelte.
The “svelte-scrollto-element” is a TypeScript/JavaScript library that allows for animating vertical and horizontal scrolling in Svelte applications. It is compatible with SvelteKit, SSR, and adapter-static setups.
To install the “svelte-scrollto-element” library, follow these steps:
npm install svelte-scrollto-element
import { scrollToElement } from 'svelte-scrollto-element';
The “svelte-scrollto-element” is a powerful library for animating scrolling in Svelte applications. It offers a range of options for customization and is compatible with various Svelte setups. With its easy installation and usage, developers can easily incorporate smooth scrolling into their Svelte projects.