class Opal::Animation::ActiveTween

Overview

Active tween controller tracking a target property with update and completion callbacks.

Defined in:

opal/animation/animator.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(tween : Tween, on_complete : Proc(Nil) | Nil = nil, &on_update : Float64 -> Nil) #

[View source]

Instance Method Detail

def on_complete : Proc(Nil) | Nil #

[View source]
def on_update : Proc(Float64, Nil) #

[View source]
def tween : Tween #

[View source]
def update(now : Time::Instant = Time.instant) : Bool #

[View source]