Answer the question
In order to leave comments, you need to log in
How to set animation progress in anime.js/velocity.js etc.?
There is such an animation (using anime.js as an example):
anime({
targets: '.selector',
opacity: 0.5,
translateX: 200,
duration: 1,
});
"opacity:0.9;transform:translateX(40px);"
"opacity:0.75;transform:translateX(100px);"
gsap.js
is a method .progress()
in , which generally does what I need. But I would like to know if there is such functionality in less heavy libraries.
Answer the question
In order to leave comments, you need to log in
With these libraries, you can animate the value of properties from one to another in a specified amount of time. The value from and to will need to be calculated. At least extreme.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question