struct
TimelineBuilder
pub struct TimelineBuilder {
/* private fields */
}A sequence of tweens.
Methods
to
pub fn to(self, targets: impl Into<Targets>, vars: Vars, position: &str) -> SelfAdd a to tween at a GSAP position ("", "<", "-=0.3", "label"…).
from
pub fn from(self, targets: impl Into<Targets>, vars: Vars, position: &str) -> SelfAdd an animation of targets from vars to where they are, at position.
from_to
pub fn from_to(self, targets: impl Into<Targets>, from: Vars, to: Vars, position: &str) -> SelfAdd an animation of targets from from to to, at position.
set
pub fn set(self, targets: impl Into<Targets>, vars: Vars, position: &str) -> SelfSet targets to vars at once, at position.
label
pub fn label(self, name: &str, position: &str) -> SelfName a time on the timeline (position as for an animation), for others to start from.