Crate dioxus_motion

Source
Expand description

Dioxus Motion - Animation library for Dioxus

Provides smooth animations for web and native applications built with Dioxus. Supports both spring physics and tween-based animations with configurable parameters.

§Features

  • Spring physics animations
  • Tween animations with custom easing
  • Color interpolation
  • Transform animations
  • Configurable animation loops
  • Animation sequences

§Example

use dioxus_motion::prelude::*;

let mut value = use_motion(0.0f32);
value.animate_to(100.0, AnimationConfig::new(AnimationMode::Spring(Spring::default())));

Re-exports§

pub use animations::platform::MotionTime;
pub use animations::platform::TimeProvider;

Modules§

animations
prelude
transitions

Structs§

AnimationSequence
Animation sequence that can chain multiple animations together
AnimationState
Internal state for an animation
AnimationStep
Duration
A Duration type to represent a span of time, typically used for system timeouts.
MotionState

Traits§

AnimationManager
Combined Animation Manager trait

Functions§

use_motion

Type Aliases§

Time