figureone
    Preparing search index...

    RotationAnimationStep step options object.

    The RotationAnimationStep animates the rotation value of a the first rotation component in a Transform.

    To rotate from a start rotation to a target rotation use the start, delta and/or target properties.

    If start is not defined, the current rotation angle (when the animation is started) will be used as start.

    Either target or delta (from start) can be used to define the target.

    The animation can either move to the target with a duration, or the duration can be determined by a velocity.

    Rotation animation targets can also be created with velocity, start and duration. In this case, the rotation angles will grow with velocity. If duration is null, then rotation duration will continue indefinitely until the animation is cancelled.

    • start number — start rotation - current rotation used if undefined
    • target number — target rotation
    • delta number — a delta rotation that can be used to define target if target is undefined
    • velocity number | null — velocity of rotation can either define the duration of a rotation if target or delta is defined, or can define the target of a rotation if duration is defined. If duration is null, then velocity determines the change in rotation over time (null)
    • maxDuration number | null — maximum duration to clip animation to where null is unlimited (null)

    RotationAnimationStep for description and examples