1.0.12 • Published 4 years ago

animation-scroll.js v1.0.12

Weekly downloads
4
License
MIT
Repository
github
Last release
4 years ago

🎉 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

📜 License

Animation-scroll.js is MIT licensed.

Contributors ✨

All Contributors

Thanks goes to these wonderful people (emoji key):

This project follows the all-contributors specification. Contributions of any kind welcome!

1.0.12

4 years ago

1.0.9

4 years ago

1.0.8

4 years ago

1.0.11

4 years ago

1.0.10

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago