module Opal::Animation

Overview

Animation and tweening engine for smooth UI transitions and micro-interactions.

Defined in:

opal/style/animation.cr

Class Method Summary

Class Method Detail

def self.bounce_out(t : Float64) : Float64 #

[View source]
def self.ease(type : Symbol, t : Float64) : Float64 #

Resolves an easing function by symbol


[View source]
def self.ease_in_cubic(t : Float64) : Float64 #

[View source]
def self.ease_in_out_cubic(t : Float64) : Float64 #

[View source]
def self.ease_in_out_quad(t : Float64) : Float64 #

[View source]
def self.ease_in_quad(t : Float64) : Float64 #

[View source]
def self.ease_out_cubic(t : Float64) : Float64 #

[View source]
def self.ease_out_quad(t : Float64) : Float64 #

[View source]
def self.elastic_out(t : Float64) : Float64 #

[View source]
def self.linear(t : Float64) : Float64 #

Common easing functions mapping progress t (0.0 to 1.0) to transformed values.


[View source]