Skip to main content

euv_core/scene/animation/
enum.rs

1/// Mathematical easing curves applied to retained scene node transitions.
2#[derive(Clone, Copy, Debug, Default, Eq, Hash, PartialEq)]
3pub enum Easing {
4    /// Constant velocity interpolation.
5    Linear,
6    /// Smooth deceleration curve ideal for UI entrances and drawers.
7    #[default]
8    EaseOutCubic,
9    /// Symmetric accelerate-then-decelerate curve.
10    EaseInOutCubic,
11    /// Subtle spring-like overshoot curve for modal and popover entrances.
12    EaseOutBack,
13    /// Emphasized quintic deceleration curve (`1 - (1 - t)^5`) for silky-smooth drawers and sheets.
14    EaseOutQuint,
15    /// Crisp cubic acceleration curve (`t^3`) for natural overlay and drawer exits.
16    EaseInCubic,
17    /// Lightly damped physical spring curve for expressive drawers, sheets, and floating cards.
18    SpringGentle,
19    /// Crisp high-stiffness spring curve for responsive modals, popovers, and pill transitions.
20    SpringSnappy,
21}