Google News
logo
Anime.js - Interview Questions
What is the REVERSE Control in Anime.js?
Reverses the direction of an animation.
animation.reverse();
Example : 
var animation = anime({
  targets: '.reverse-anim-demo .el',
  translateX: 270,
  loop: true,
  delay: function(el, i) { return i * 200; },
  easing: 'easeInOutSine'
});

document.querySelector('.reverse-anim-demo .reverse').onclick = animation.reverse;
Advertisement