This repository has been archived by the owner on May 11, 2023. It is now read-only.
🔁 The repeatType API
This release adds support for a new repeatType
API. repeatType
describes how repeated animations should run. Valid values are 'loop'
and 'mirror'
; 'mirror'
is the default.
If 'loop'
is specified, the animation will run from its from
state to its to
state, and then "jump" back to the from
state to start the animation over. This is akin to animation-direction: normal
in CSS animations.
If 'mirror'
is specified, the animation will alternate between its from
and to
values. This is the behavior renature
has always had and is the default if repeatType
is not specified. It is akin to animation-direction: alternate
in CSS animations.
Added
- The
repeatType
parameter can now be passed to configure how repeated animations should be run. PR by @parkerziegler here.