1.0.21 • Published 9 months ago
@ikerya/animate.js v1.0.21
Animate.JS
This package aims to replace Animate.CSS using JS step-by-step (requestAnimationFrame) animations instead of CSS ones (keyframes).
Usage
Demo
First option
// fadeOut
const start = new AnimateJS(
document.getElementById('block'),
{
keyframes: [{
opacity: [ 1 ]
}, {
duration: 1000,
opacity: [ 1, 0 ]
}]
}
);
start().then(() => console.log("ended"));
Second option
// fadeOut
const options = {
duration: 500
};
const start = AnimateJS.use(
'fadeOut',
document.getElementById('block'),
options // optional
);
start().then(() => console.log("ended"));
1.0.19
10 months ago
1.0.21
9 months ago
1.0.20
10 months ago
1.0.18
2 years ago
1.0.17
2 years ago
1.0.16
3 years ago
1.0.15
3 years ago
1.0.9
3 years ago
1.0.11
3 years ago
1.0.10
3 years ago
1.0.14
3 years ago
1.0.13
3 years ago
1.0.12
3 years ago
1.0.8
3 years ago
1.0.7
3 years ago
1.0.6
3 years ago
1.0.5
3 years ago
1.0.4
3 years ago
1.0.3
3 years ago
1.0.2
3 years ago
1.0.1
3 years ago
1.0.0
3 years ago