pub type TimingFunction = ComputedTimingFunction;
Expand description
An alias of the computed timing function.
Aliased Type§
enum TimingFunction {
Keyword(TimingKeyword),
CubicBezier {
x1: f32,
y1: f32,
x2: f32,
y2: f32,
},
Steps(i32, StepPosition),
LinearFunction(PiecewiseLinearFunction),
}
Variants§
Keyword(TimingKeyword)
linear | ease | ease-in | ease-out | ease-in-out
CubicBezier
cubic-bezier(<number>, <number>, <number>, <number>)
Steps(i32, StepPosition)
step-start | step-end | steps(<integer>, [ <step-position> ]?)
<step-position> = jump-start | jump-end | jump-none | jump-both | start | end
LinearFunction(PiecewiseLinearFunction)
linear([
Trait Implementations§
source§impl ToResolvedValue for TimingFunction
impl ToResolvedValue for TimingFunction
source§type ResolvedValue = TimingFunction<i32, f32, PiecewiseLinearFunction>
type ResolvedValue = TimingFunction<i32, f32, PiecewiseLinearFunction>
The resolved value type we’re going to be converted to.
source§fn to_resolved_value(self, _: &Context<'_>) -> Self
fn to_resolved_value(self, _: &Context<'_>) -> Self
Convert a resolved value to a resolved value.
source§fn from_resolved_value(resolved: Self::ResolvedValue) -> Self
fn from_resolved_value(resolved: Self::ResolvedValue) -> Self
Convert a resolved value to resolved value form.