class Opal::Animation::Tween

Overview

Represents a time-based numeric interpolation between two values.

Defined in:

opal/style/animation.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(from : Float64, to : Float64, duration_ms : Int64 = 300_i64, easing : Symbol = :ease_out_quad, start_time : Time::Instant = Time.instant) #

[View source]

Instance Method Detail

def current_value(now : Time::Instant = Time.instant) : Float64 #

[View source]
def duration_ms : Int64 #

[View source]
def easing : Symbol #

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

[View source]
def from : Float64 #

[View source]
def start_time : Time::Instant #

[View source]
def to : Float64 #

[View source]