1.1.1 • Published 2 years ago

js-scroll-animator v1.1.1

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

js-scroll-animator

Allows you to animate HTML objects via scrolling. Powered by GSAP.

Installation

Use npm to install js-scroll-animator.

npm install js-scroll-animator --save

Usage

import { jsScrollAnimator } from 'js-scroll-animator';

jsScrollAnimator('.my-element', {
  scrub: 0.3,
  animate: {
    x: 250, // slide your element to right
  },
});

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT

1.1.1

2 years ago

1.0.0

2 years ago