1.0.0 • Published 6 months ago

slottie v1.0.0

Weekly downloads
-
License
MIT
Repository
-
Last release
6 months ago

Slottie

Slottie is an NPM package for loading and interacting with Lottie animations. It supports advanced interactions like hover, click, scroll, and drag, as well as responsive resizing and layer-specific animations.

Installation

npm install slottie

Usage

Add the required data attributes to your HTML elements and import Slottie to initialize animations.

import 'slottie';

Example HTML

<div
  data-lottie-url="animation.json"
  data-lottie-hover="0,100"
  data-lottie-loop="true"
  data-lottie-autoplay="true"
></div>

License

MIT

1.0.0

6 months ago