The goal of this helper is to use a child timeline on a ‘progress’ element to drive the main timelines animation to a certain percentage of its duration while keeping timeline, click and drag actions functional. Great for dynamic charts.
For the next update to this I am thinking about including an In and Out Point instead of only the simple percentage. You can drive any symbol’s main timeline by
- assigning
symbolProgress()
to symbol load - creating a rectangle in the symbol and adding the class ‘
progress
’ - animating it’s
scaleX
either via script, timeline or action
from0-100
with the ease of your choice in an additional timeline - use
data-percent
on the symbol to determine how much to play of it - trigger the additional timeline via a symbol, click or drag action (code also works).