lustre/ui/tween
Types
The type of easing function to use.
pub type Function {
Linear
Sine(Kind)
Quadratic(Kind)
Cubic(Kind)
Quartic(Kind)
Quintic(Kind)
Exponential(Kind)
Circular(Kind)
Elastic(Kind)
Back(Kind)
Bounce(Kind)
}
Constructors
-
Linear
-
Sine(Kind)
-
Quadratic(Kind)
-
Cubic(Kind)
-
Quartic(Kind)
-
Quintic(Kind)
-
Exponential(Kind)
-
Circular(Kind)
-
Elastic(Kind)
-
Back(Kind)
-
Bounce(Kind)
Functions
pub fn exponential(
at: Float,
from: Float,
to: Float,
kind: Kind,
) -> Float
pub fn from_string(function: String) -> Result(Function, Nil)