animation-scroll.js
v1.0.12
Published
π Modern scroll animation π and very easy to use! π
Downloads
4
Maintainers
Readme
π Demo
Preview live Click Here
π Description
π¦ Installation
// To install using npm
npm install animation-scroll.js -S
// To install using yarn
yarn add animation-scroll.js
<script src="https://unpkg.com/[email protected]/dist/index.js"></script>
βΆοΈ Getting started
// If you use nodejs, reajs, vuejs or angular
const animationScrollJs = require("animation-scroll.js");
// If you use ES6+
import animationScrollJs from "animation-scroll.js";
/**
* @Param container: number | element
* @Param duration: number
* @Param callback: function
* */
new AnimationScrollJs(500, 1000, (e) => {
console.log('Scroll done!');
});
/**
* @Param container: number | element
* @Param duration: number
* @Param callback: function
* */
let container = document.getElementById('chat-container');
let duration = 1000;
var callback = function () {
console.log('Scroll done!');
}
new AnimationScrollJs(container, duration, callback);
β Support for
Animation-scroll.js is an open source project licensed by MIT. You can grow thanks to the sponsors and the support of the amazing sponsors. If you want to join them, contact me here.
π© Stay in touch
- Author Yoni Calsin
- Twitter Yoni Calsin
π License
Animation-scroll.js is MIT licensed.
Contributors β¨
Thanks goes to these wonderful people (emoji key):
This project follows the all-contributors specification. Contributions of any kind welcome!