# Type Alias style::values::specified::easing::TimingFunction

``pub type TimingFunction = TimingFunction<Integer, Number, PiecewiseLinearFunction>;``
Expand description

A specified timing function.

## Aliased Type§

``````enum TimingFunction {
Keyword(TimingKeyword),
CubicBezier {
x1: Number,
y1: Number,
x2: Number,
y2: Number,
},
Steps(Integer, StepPosition),
LinearFunction(PiecewiseLinearFunction),
}``````

## Variants§

§

### Keyword(TimingKeyword)

`linear | ease | ease-in | ease-out | ease-in-out`

§

### CubicBezier

`cubic-bezier(<number>, <number>, <number>, <number>)`

#### Fields

§`x1: Number`
§`y1: Number`
§`x2: Number`
§`y2: Number`
§

### Steps(Integer, StepPosition)

`step-start | step-end | steps(<integer>, [ <step-position> ]?)` `<step-position> = jump-start | jump-end | jump-none | jump-both | start | end`

§

### LinearFunction(PiecewiseLinearFunction)

linear([]#) = && ? = {1, 2}

## Implementations§

source§

### impl TimingFunction

source

source

source

source

#### pub fn match_keywords(name: &AnimationName) -> bool

Returns true if the name matches any keyword.

source§

### impl TimingFunction

source

#### pub fn to_computed_value_without_context(&self) -> ComputedTimingFunction

Generate the ComputedTimingFunction without Context.

## Trait Implementations§

source§

### impl Parse for TimingFunction

source§

#### fn parse<'i, 't>( context: &ParserContext<'_>, input: &mut Parser<'i, 't>, ) -> Result<Self, ParseError<'i>>

Parse a value of this type. Read more
source§

### impl ToComputedValue for TimingFunction

§

#### type ComputedValue = TimingFunction<i32, f32, PiecewiseLinearFunction>

The computed value type we’re going to be converted to.
source§

#### fn to_computed_value(&self, _: &Context<'_>) -> Self::ComputedValue

Convert a specified value to a computed value, using itself and the data inside the `Context`.
source§

#### fn from_computed_value(computed: &Self::ComputedValue) -> Self

Convert a computed value to specified value form. Read more