Function rotate
- rotate(node, options?): TransitionConfig
Parameters
- node: HTMLElement
The transition node.
Optional
options: {
delay?: number;
duration?: number;
easing?: EasingReference;
end?: number;
initial?: number;
}Optional parameters.
Optional
delay?: numberDelay in ms before start of transition.
Optional
duration?: numberTotal transition length in ms.
Optional
easing?: EasingReferenceEasing function name or function to apply to the rotate transition.
Optional
end?: numberEnd rotation in degrees.
Optional
initial?: numberInitial rotation in degrees.
Returns TransitionConfig
Transition config.
- node: HTMLElement
Provides a rotate transition. For options
easing
is applied to the rotate transition. The default easing is linear.Note: that when reversing the transition that time goes from
1 - 0
, so if specific options are applied for rotating out transition thenend
andinitial
are swapped.