Function rotateFade
- rotateFade(
node: HTMLElement,
options?: {
delay?: number;
duration?: number;
easing?: EasingReference;
easingFade?: EasingReference;
easingRotate?: EasingReference;
end?: number;
initial?: number;
},
): TransitionConfig Parameters
- node: HTMLElement
The transition node.
Optional
options: {
delay?: number;
duration?: number;
easing?: EasingReference;
easingFade?: EasingReference;
easingRotate?: 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 both slide & fade transitions.
Optional
easingFade?: EasingReferenceEasing function name or function to apply to the fade transition.
Optional
easingRotate?: 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
Combines rotate & fade transitions into a single transition. For options
easing
this is applied to both transitions, however if providedeasingRotate
and / oreasingFade
will take precedence. 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.