juliangarnier / anime

JavaScript animation engine
https://animejs.com
MIT License
50.45k stars 3.69k forks source link

Absolute delay for each animation #706

Closed pinoybai closed 4 years ago

pinoybai commented 4 years ago

Hi,

Is it possible to set absolute delay for each animation?

for example the below value to opacity runs the second one exactly at 7500 ms but I want it to run at 4000ms in a timeline:

opacity: [
          {value: 0, duration: 500, delay: 3000}, 
          {value: 1, duration: 500, delay: 4000}
]

How do I do that?

pinoybai commented 4 years ago

I was able to implement that using for loop for each animation and adding it to the timeline each time.