Struct anim::Options [−][src]
pub struct Options<T: Animatable> { /* fields omitted */ }
Expand description
options to build an Animation
Implementations
auto reverse animation when it reaches the end; default false. Note: it will not increase the duration or repeat times.
auto_reverse | effect |
---|---|
false | from -> to |
true | from -> to -> from |
👎 Deprecated
deprecated, use Options::skip()
instead
play animation from the specified progress, same effect as Animation::skip()
play animation with delay, same effect as Animation::delay()
;
take effect only once when the animation loops more than once.
animation simple duration, this animation will last for how long if it plays once. default 1 second.
If Options::repeat()
is specified, the animation might play more than once.
repeat behavior
your Animation
repeats indefinitely
alias of Options::cycle()
, see Options::repeat()
set ease function, default easing::linear
build Timeline
and start animation
Trait Implementations
Auto Trait Implementations
impl<T> !RefUnwindSafe for Options<T>
impl<T> !UnwindSafe for Options<T>
Blanket Implementations
Mutably borrows from an owned value. Read more