pub struct InfiniteTransition { /* private fields */ }Expand description
A scoped API for continuous/repeating animations.
All child animations created via this transition loop indefinitely
between the given initial and target values (ping-pong with reverse).
If you need a custom repeat configuration, pass an AnimationSpec that
already has .repeated(...) set - the transition will respect it instead
of applying the default infinite reverse.
Implementations§
Source§impl InfiniteTransition
impl InfiniteTransition
pub fn animate_float( &self, key: impl Into<String>, initial: f32, target: f32, spec: AnimationSpec, ) -> f32
pub fn animate_color( &self, key: impl Into<String>, initial: Color, target: Color, spec: AnimationSpec, ) -> Color
pub fn animate_vec2( &self, key: impl Into<String>, initial: Vec2, target: Vec2, spec: AnimationSpec, ) -> Vec2
pub fn animate_size( &self, key: impl Into<String>, initial: Size, target: Size, spec: AnimationSpec, ) -> Size
pub fn animate_rect( &self, key: impl Into<String>, initial: Rect, target: Rect, spec: AnimationSpec, ) -> Rect
Auto Trait Implementations§
impl Freeze for InfiniteTransition
impl RefUnwindSafe for InfiniteTransition
impl Send for InfiniteTransition
impl Sync for InfiniteTransition
impl Unpin for InfiniteTransition
impl UnsafeUnpin for InfiniteTransition
impl UnwindSafe for InfiniteTransition
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more