Skip to main content

Crate palantir_anim_derive

Crate palantir_anim_derive 

Source
Expand description

Derive for palantir::widget::Animatable: animated fields forward to their own impls; #[animate(snap)] fields take the target’s value in lerp and are left out of the arithmetic.

Derive Macros§

Animatable
#[derive(Animatable)] on a struct with named fields. #[animate(snap)] (alias skip) on a field: lerp returns the target’s value, spring math skips it and magnitude excludes it.