@feather-scroll/svelte
v0.1.1
Published
Svelte action for FeatherScroll.
Readme
@feather-scroll/svelte
Official Svelte wrapper for FeatherScroll, exposed as a lightweight action around the zero-dependency core.
Install
npm i @feather-scroll/svelte @feather-scroll/core @feather-scroll/effectsUsage
<script>
import { carousel } from '@feather-scroll/svelte';
import { flipCard } from '@feather-scroll/effects';
import '@feather-scroll/core/styles/core.css';
</script>
<div use:carousel={{ effect: flipCard, loop: true, nav: true, dots: true }}>
<div>1</div>
<div>2</div>
<div>3</div>
</div>The action accepts all core options and returns the carousel API for imperative control.
