Hi,
Question: How can I run animations to for an exact period of time? Eg 2 seconds
- I see that I can use set duration(2), but this simply alters the timescale not the duration itself, so the player only runs for 2 seconds.
Question: How can I stagger a list of Dom Elements to be evenly distributed stagger starts ?
- Complexity here is that each element can have a different animation applied.
- Can I use distribute() method to calculate positions?
Essentially the problem I am attempting to solve is - I have a list of Dom elements that I need to animate, each being staggered over a fixed time window. All animations should be completed within the specified time duration.
Eg 10 elements need to be animated, and staggering each start, but all animations must finish within 2 seconds.