js add animation to element
document.getElementById('test').style.animation = 'fading 2s infinite'
js add animation to element
document.getElementById('test').style.animation = 'fading 2s infinite'
js add animation to element
var animation = element.animate(keyframes, options);
js add animation to element
document.getElementById("tunnel").animate([
// keyframes
{ transform: 'translateY(0px)' },
{ transform: 'translateY(-300px)' }
], {
// timing options
duration: 1000,
iterations: Infinity
});
js add animation to element
let rotate360 = [
{ transform: 'rotate(360deg)' }
];
js add animation to element
#test {
background-color: blue;
width: 100px;
height: 100px;
position: relative;
-webkit-animation: fading 5s infinite;
animation: fading 5s infinite;
}
/* Here is the animation (keyframes) */
@keyframes fading {
0% { opacity: 1; }
100% { opacity: 0; }
}
js keyframe
< script src = ' /path/to/jquery.keyframes [.min ] .js ' > </ script >
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us