Home

Awesome

svelte-slimscroll

svelte-slimscroll is a action for Svelte.js, which can transforms any div into a scrollable area with a nice scrollbar.

Demo: https://svelte.dev/repl/e8dcf07c3f3c4573a62ec289b1958005?version=3.29.4.

Stargazers repo roster for @MelihAltintas/svelte-slimscroll

Install

npm i svelte-slimscroll
import {slimscroll} from "svelte-slimscroll"

Usage

Using the slimscroll action

    <div use:slimscroll>
        ...
    </div>

Using action with options

    <div use:slimscroll={options}>
    ...
    </div>
<script>
   import {slimscroll} from "svelte-slimscroll"
</script>

The options is same as jQuery version. See their documentation

Options

License

MIT