class
Opal::Animation::Tween
- Opal::Animation::Tween
- Reference
- Object
Overview
Represents a time-based numeric interpolation between two values.
Defined in:
opal/style/animation.crConstructors
Instance Method Summary
- #current_value(now : Time::Instant = Time.instant) : Float64
- #duration_ms : Int64
- #easing : Symbol
- #finished?(now : Time::Instant = Time.instant) : Bool
- #from : Float64
- #start_time : Time::Instant
- #to : Float64
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)
#