Files
Ely-GPUI-Components/src/motion/mod.rs
T
ZacharyZhang-NY 1ac50e4002 Media: the player's bar fades by elapsed time, so its scrubber and buttons keep their state
The fade restarted an animation id at each rest and wake, and gpui hands
that id to every descendant: the scrubber's drag, hover and focus handle
and the buttons' focus were rebuilt under it. The bar's opacity now reads
the time since the last change through motion::since_change. The stage
tracks focus even without key handlers, so a focused bar button keeps
the bar up. The player's tests move to their own file.
2026-09-26 18:14:06 -04:00

32 lines
979 B
Rust

mod changes;
mod curve;
mod effects;
mod list;
mod overlay;
mod particles;
mod progress;
mod reorder;
mod skeleton;
mod slide;
mod spinner;
mod transition;
#[cfg(all(test, feature = "test-support"))]
mod tests;
pub(crate) use changes::changes;
pub use curve::*;
pub(crate) use effects::since_change;
pub use effects::{Blink, Flash, Glow, Marquee, Pulse, Shake};
pub use list::{AnimatePresence, Flip};
pub use overlay::{LazyLoad, LoadingOverlay, Refresh, RefreshIndicator, TypingIndicator};
pub use particles::{AnimatedGradient, Confetti, ParticleBackground, Ripple};
pub(crate) use progress::follow;
pub use progress::{ProgressBar, ProgressRing};
pub use reorder::Reorder;
pub use skeleton::{Shimmer, Skeleton, SkeletonAvatar, SkeletonCard, SkeletonTable, SkeletonText};
pub(crate) use slide::{Axis, Marker, glide, measure_item, measure_origin, slide};
pub(crate) use spinner::arc;
pub use spinner::{Spinner, SpinnerStyle};
pub use transition::{Entrance, Stagger, Transition};