class Eagle::Tween::Sequence

Overview

Steps that run one after another: tweens, waits and callbacks. Build one with Tween.sequence.

Defined in:

eagle/core/tween.cr

Instance Method Summary

Instance Method Detail

def call(&block : -> ) : self #

Adds a step that runs the block and moves on right away.


def finished? : Bool #

True once every step has run.


def on_complete(&block : -> ) : self #

Adds a block to run after the last step.


def start : self #

Starts the sequence. Tween.sequence does this for you.


def to(duration : Number, ease : Symbol = :linear, &block : Float32 -> ) : self #

Adds a tween step whose block receives eased progress.


def wait(seconds : Number) : self #

Adds a pause.