loop option on a timing transition to one of two modes:
'repeat'— restarts the animation from the beginning each cycle'reverse'— alternates direction, animating forward then backward
initialAnimate is required for looping. It defines the starting value the animation resets to (for 'repeat') or reverses from (for 'reverse'). Without it, the loop has no defined start point.Examples
Pulsing opacity
Usesloop: 'reverse' to fade between 0.3 and 1 continuously.
Marquee-style scroll
Usesloop: 'repeat' to scroll content from its starting position to -300 pixels, then jump back and repeat.