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.
startnumber — start rotation - current
rotation used if undefined
targetnumber — target rotation
deltanumber — a delta rotation that can be
used to define target if target is undefined
velocitynumber | 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)
maxDurationnumber | null — maximum duration to clip animation
to where null is unlimited (null)
RotationAnimationStep step options object.
The RotationAnimationStep animates the rotation value of a the first rotation component in a Transform.
To rotate from a
startrotation to atargetrotation use thestart,deltaand/ortargetproperties.If
startis not defined, the current rotation angle (when the animation is started) will be used asstart.Either
targetordelta(from start) can be used to define the target.The animation can either move to the target with a
duration, or thedurationcan be determined by avelocity.Rotation animation targets can also be created with
velocity,startandduration. In this case, the rotation angles will grow withvelocity. Ifdurationis null, then rotation duration will continue indefinitely until the animation is cancelled.startnumber— start rotation - current rotation used if undefinedtargetnumber— target rotationdeltanumber— a delta rotation that can be used to definetargetiftargetis undefinedvelocitynumber|null— velocity of rotation can either define thedurationof a rotation iftargetordeltais defined, or can define thetargetof a rotation ifdurationis defined. Ifdurationis null, then velocity determines the change in rotation over time (null)maxDurationnumber|null— maximum duration to clip animation to wherenullis unlimited (null)See
RotationAnimationStep for description and examples