Skip to main content

Animate

Struct Animate 

Source
pub struct Animate {
Show 20 fields pub target: Place, pub effect: StringExpr, pub effect_span: Option<Span>, pub duration: Option<Expr>, pub timing: Timing, pub delay: Option<Expr>, pub along: Option<Place>, pub repeat: Option<Expr>, pub yoyo: bool, pub ease: Option<StringExpr>, pub color: Option<StringExpr>, pub stagger: Option<Expr>, pub out: bool, pub slide_from: Option<Dir>, pub morph_into: Option<Place>, pub type_unit: Option<TypeUnit>, pub scramble_chars: Option<StringExpr>, pub wiggles: Option<Expr>, pub draw_from: Option<Expr>, pub draw_to: Option<Expr>,
}
Expand description

animate <target> with "<effect>" [along <path>] [to <colour>] [for <dur>] [at <t> | after <ref>] [delay <d>] [repeat <n>] [yoyo] [ease "<name>"].

Fields§

§target: Place§effect: StringExpr§effect_span: Option<Span>§duration: Option<Expr>§timing: Timing§delay: Option<Expr>§along: Option<Place>

Object whose geometry the move effect follows (GSAP MotionPath).

§repeat: Option<Expr>

Number of repeats after the first play (GSAP repeat): -1 loops forever, 0/absent plays once.

§yoyo: bool

Alternate direction on each repeat (GSAP yoyo).

§ease: Option<StringExpr>

GSAP easing name overriding the per-effect default (e.g. "elastic.out").

§color: Option<StringExpr>

Target colour for the highlight effect (to <colour>); any rpic colour form (name, rgb(), 0xRRGGBB).

§stagger: Option<Expr>

When the target is a block, fan the effect across its children with this per-child start offset in seconds (GSAP-style stagger).

§out: bool

Play the effect as an exit (reverse: .to() the hidden state) rather than an entrance.

§slide_from: Option<Dir>

Direction the slide effect enters from (from left, …).

§morph_into: Option<Place>

Target object the morph effect morphs into (into B).

§type_unit: Option<TypeUnit>

Split granularity for the type effect (by word / by char); None defaults to Char.

§scramble_chars: Option<StringExpr>

Custom scramble charset for the scramble effect (by "01"); None defaults to the plugin’s upperCase.

§wiggles: Option<Expr>

Oscillation count for the wiggle effect (wiggles <n>); None defaults to a few.

§draw_from: Option<Expr>

Start of the revealed segment for the draw effect, as a fraction of the stroke (from 40%0.4); None starts at the beginning.

§draw_to: Option<Expr>

End of the revealed segment for the draw effect, as a fraction of the stroke (to 60%0.6); None reaches the end.

Trait Implementations§

Source§

impl Clone for Animate

Source§

fn clone(&self) -> Animate

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Animate

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl PartialEq for Animate

Source§

fn eq(&self, other: &Animate) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for Animate

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.