orbital-charts 0.1.1

Chart components for Orbital and Leptos
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
//! Bar chart entrance motion preset.

use orbital_motion::{MotionCurve, PresenceMotion};

use crate::ChartMotion;

/// Default bar pop-in motion preset.
pub fn bar_entrance_motion(motion: &ChartMotion) -> PresenceMotion {
    motion
        .entrance
        .unwrap_or_else(|| PresenceMotion::fade_scale().with_curve(MotionCurve::DecelerateMax))
}