AnimationFrame¶
Interface AnimationFrame
interface AnimationFrame {
center?: Vector3;
color?: string | Vector3 | [number, number, number, number] | null;
enabled?: boolean;
opacity?: number;
rotation?: Vector3 | [number, number, number, number];
scale?: Vector3;
time?: number;
translation?: Vector3;
}
center?: Vector3;
color?: string | Vector3 | [number, number, number, number] | null;
enabled?: boolean;
opacity?: number;
rotation?: Vector3 | [number, number, number, number];
scale?: Vector3;
time?: number;
translation?: Vector3;
}
Properties
Optionalcenter
The center point which is used for all rotation and scale interpolations.
Optionalcolor
The color as [r,g,b], [r,g,b,a], string (hexadecimal value or HTML Color Code). Use null to reset.
Optionalenabled
enabled?: boolean
The enabled state as true or false.
Optionalopacity
opacity?: number
The opacity between 0 and 1.
Optionalrotation
The rotation as Euler angles [x,y,z] or Quaternion [C,xS,yS,zS].
Optionalscale
The scale as [x,y,z].
Optionaltime
time?: number
The time between 0 and 1. Indicates the progress of the animation sequence for this AnimationFrame.
Optionaltranslation
The translation as [x,y,z].
Was this page helpful? Please leave a thumbs up or down.
An AnimationFrame defines a single state inside of an animation sequence.
See
AnimationAPI