js element has transform, how to animate code example
Example 1: javascript animate elements
document.getElementById("tunnel").animate([
// keyframes
{ transform: 'translateY(0px)' },
{ transform: 'translateY(-300px)' }
], {
// timing options
duration: 1000,
iterations: Infinity
});
Example 2: js keyframe
var ondersteundFlag = $ . sleutelframe . isSupported ( ) ;