1.0.12 • Published 4 years ago
animation-scroll.js v1.0.12
🎉 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/animation-scroll.js@1.0.12/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!