Skip to main content

Crate orbital_motion

Crate orbital_motion 

Source
Expand description

Shared motion vocabulary for Orbital components.

Tokens, atoms, presence transitions, scroll triggers, and reduced-motion utilities consumed by orbital-base-components and orbital-core-components.

§Scroll trigger

resolve_scroll_trigger and [use_scroll_trigger] drive keep-mounted hide-on-scroll chrome (compose with HideOnScroll in core-components).

Re-exports§

pub use atom::MotionAtom;
pub use atom::SlideFrom;
pub use callback::MotionElementCallback;
pub use group::MotionGroupContext;
pub use group::OrbitalPresenceGroup;
pub use group::OrbitalPresenceGroupItem;
pub use presence::presence_styles;
pub use presence::OrbitalPresence;
pub use presence::PresenceMotion;
pub use progress_fill::clamp_unit_progress;
pub use progress_fill::progress_fill_styles;
pub use progress_fill::progress_width_percent;
pub use progress_fill::ProgressFillMotion;
pub use progress_fill::DEFAULT_PROGRESS_FILL;
pub use progress_fill::EPIC_PROGRESS_FILL;
pub use progress_fill::GLACIAL_PROGRESS_FILL;
pub use progress_fill::PROGRESS_FILL_CLASS;
pub use progress_fill::PROGRESS_FILL_RESPECTS_REDUCED_CLASS;
pub use reduced_motion::use_reduced_motion;
pub use scroll_trigger::resolve_scroll_trigger;
pub use scroll_trigger::ScrollTriggerOptions;
pub use slot::resolve_presence_motion;
pub use slot::resolve_presence_motion_derived;
pub use slot::MotionSlot;
pub use tokens::MotionCurve;
pub use tokens::MotionDuration;
pub use use_scroll_trigger::use_scroll_trigger;

Modules§

atom
Motion atoms: one enter or exit leg of a presence transition.
callback
DOM element callbacks for transition lifecycle hooks.
collapse
Height measurement hooks for crate::PresenceMotion::collapse transitions.
group
presence
preview
Preview registration for motion catalog pages.
progress_fill
Continuous progress / width fill motion (property transitions, not presence).
reduced_motion
Reduced-motion utilities for respecting user preferences.
scroll_trigger
Pure scroll-direction trigger used by hide-on-scroll chrome.
slot
Optional motion override slot for overlay and list components.
tokens
use_scroll_trigger
Hydrate scroll listener that drives a hide/show signal.

Structs§

PreviewRegistration
Static metadata for a generated component preview page.