startTransitions
Starts transitions for the camera.
note
This method is only available in global
mode.
Syntax
player.camera.startTransitions(transitions);
Parameters
Name | Type | Description |
---|---|---|
transitions | CameraTransition[] | The transitions to start for the camera. |
Example
player.camera.startTransitions([
{
from: [0, 5, 10],
to: [0, 5, 15],
durtion: 500,
easing: 'easeOutQuad',
},
{
to: [0, 5, 10],
durtion: 500,
easing: 'easeInQuad',
},
]);
Available on: Client Server