Optional repeatOptional repeatWhen repeating an animation, repeatDelay will set the
duration of the time to wait, in seconds, between each repetition.
<motion.div
animate={{ rotate: 180 }}
transition={{ repeat: Infinity, repeatDelay: 1 }}
/>
Optional repeatHow to repeat the animation. This can be either:
"loop": Repeats the animation from the start
"reverse": Alternates between forward and backwards playback
"mirror": Switches from and to alternately
<motion.div
animate={{ rotate: 180 }}
transition={{
repeat: 1,
repeatType: "reverse",
duration: 2
}}
/>
Generated using TypeDoc
The number of times to repeat the transition. Set to
Infinityfor perpetual repeating.Without setting
repeatType, this will loop the animation.