User:Mantaroh/Scroll-driven animations: Difference between revisions

Jump to navigation Jump to search
Update sample code.
(changed third parameter type.)
(Update sample code.)
Line 33: Line 33:
  - If ScrollTimeline has related animation, maxRnage should be max value in animations.  
  - If ScrollTimeline has related animation, maxRnage should be max value in animations.  
   (We should ignore the infinity duration.)
   (We should ignore the infinity duration.)
  - If all of related animation's duration is infinity, maxRange should be max value in animation's duration.
  - If all of related animation's duration is infinity, maxRange should be max value in animation's duration.<br />
   e.g. we have two animations.
   e.g. we have two animations.
     target1.animation = "anim1 10s linear infinite";
     target1.animation = "anim1 10s linear infinite";
     target2.animation = "anim2 20s linear infinite";
     target2.animation = "anim2 20s linear infinite";<br />
 
   Then we should be max value of ScrollTimeline is 20s.
   Then we should be max value of ScrollTimeline is 20s.


28

edits

Navigation menu