Slide transition plugin for Svelte
npm install svelte-transitions-slideSlide transition plugin for Svelte. Demo
Note that this transition will behave oddly with display: inline elements.
Recommended usage is via svelte-transitions, but you can use this module directly if you prefer. Note that it assumes an ES module or CommonJS environment.
Install with npm or yarn:
``bash`
npm install --save svelte-transitions-slide
Then add the plugin to your Svelte component's exported definition:
`html
{{#if visible}}
`
You can specify delay and duration parameters, which default to 0 and 400 respectively, and a custom easing function (which should live on your helpers):
`html
slides in slowly
``