Confirmed users
166
edits
m (→API) |
m (→Example usage) |
||
Line 44: | Line 44: | ||
Also note that by using a regular player you can have several animations tracking the same scroll container and then call <code>pause()</code>, <code>reverse()</code>, <code>finish()</code>, and update <code>playbackRate</code> etc. to take them out of the flow or change the way they track the scroll position. Setting <code>startTime</code> or adjusting the animation's delay can also allow offsetting them. | Also note that by using a regular player you can have several animations tracking the same scroll container and then call <code>pause()</code>, <code>reverse()</code>, <code>finish()</code>, and update <code>playbackRate</code> etc. to take them out of the flow or change the way they track the scroll position. Setting <code>startTime</code> or adjusting the animation's delay can also allow offsetting them. | ||
<div style="opacity:0. | <div style="opacity:0.4">(Regarding the "auto" playbackRate behavior, the main problem is the '100' passed as the animation's duration would become completely arbitary. However, it's necessary since the default duration of an animation is zero so no matter what we set the <code>playbackRate</code> to we're not going to get meaningful times for running the animation.)</div> | ||
== Implementation issues == | == Implementation issues == |