• 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 then end and initial are swapped.

    Parameters

    • node: HTMLElement

      The transition node.

    • Optionaloptions: {
          delay?: number;
          duration?: number;
          easing?: EasingReference;
          end?: number;
          initial?: number;
      }

      Optional parameters.

      • Optionaldelay?: number

        Delay in ms before start of transition.

      • Optionalduration?: number

        Total transition length in ms.

      • Optionaleasing?: EasingReference

        Easing function name or function to apply to the rotate transition.

      • Optionalend?: number

        End rotation in degrees.

      • Optionalinitial?: number

        Initial rotation in degrees.

    Returns TransitionConfig

    Transition config.