Skip to main content

startTransitions

Starts transitions for the camera.

note

This method is only available in global mode.

Syntax

player.camera.startTransitions(transitions);

Parameters

NameTypeDescription
transitionsCameraTransition[]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