Function rotate
-
rotate(
node: HTMLElement,
options?: {
delay?: number;
duration?: number;
easing?: EasingReference;
end?: number;
initial?: number;
},
): TransitionConfigParameters
- node: HTMLElement
The transition node.
Optionaloptions: {
delay?: number;
duration?: number;
easing?: EasingReference;
end?: number;
initial?: number;
}Optional parameters.
-
Optionaldelay?: numberDelay in ms before start of transition.
-
Optionalduration?: numberTotal transition length in ms.
-
Optionaleasing?: EasingReferenceEasing function name or function to apply to the rotate transition.
-
Optionalend?: numberEnd rotation in degrees.
-
Optionalinitial?: numberInitial rotation in degrees.
-
Returns TransitionConfig
Transition config.
- node: HTMLElement
Provides a rotate transition. For options
easingis 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 thenendandinitialare swapped.