Upstream: crates/rune/README.md § Finite choreography at
65f8eb43f710, MIT © Anomaly. Bundled by build-rune-apps; links point at this snapshot or at GitHub at that rev.
Finite choreography
El::sequence uses the same render-clock tracks as loops, then holds the final pose
and sleeps. No app phases, poll callback, or wake_after calls are needed.
use rune::{Beat, Sequence, el};
const MOMENT: &[Beat] = &[
Beat::new(0.0).opacity(0.0).scale(0.96),
Beat::new(0.3),
Beat::new(0.6).opacity(0.6).scale(1.04),
Beat::new(0.9),
];
el().key("moment").sequence(Sequence::new(MOMENT).delay(0.1))
Each beat is a full opacity/scale pose at elapsed seconds; omitted values are 1.
Beat::easing sets the arriving segment's easing (default ease-in-out). Unchanged
specs keep their progress across commits; changing the spec or mounting a new key
replays it. Reduced motion and explicit settle land the final pose immediately.
Scale changes presentation, not layout. This finite API is separate from the
lower-level rune_motion::Keyframes<T> property-track builder.