@kemet/kemet-scroll-snap
v1.1.4
Published
A scroll-snap implementation for responsive sliders.
Downloads
8
Readme
<kemet-scroll-snap>
Installation
npm i @kemet/kemet-scroll-snap
Usage
import '@kemet/kemet-scroll-snap/kemet-scroll-snap.js';
import '@kemet/kemet-scroll-snap-slide/kemet-scroll-snap-slide.js';
import '@kemet/kemet-scroll-snap/kemet-scroll-snap-paginator.js'; // optional
<kemet-scroll-snap>
<div slot="slides">
<kemet-scroll-snap-slide>[your content here]</kemet-scroll-snap-slide>
<kemet-scroll-snap-slide>[your content here]</kemet-scroll-snap-slide>
<kemet-scroll-snap-slide>[your content here]</kemet-scroll-snap-slide>
</div>
<div slot="pagination">
<kemet-scroll-snap-paginator></kemet-scroll-snap-paginator>
</div>
</kemet-scroll-snap>