Skip to main content

autoplay

Typeboolean | AutoplayOptions
Defaultfalse
Added inv4.0.0

Makes the camera move automatically in a horizontal direction.
Use true to enable autoplay & apply the default options; use false to disable it.
You can also set detailed options by using objects with type AutoplayOptions.

Example

true

Here's an example of using the option autoplay: true, see AutoplayOptions for the default options that actually applied.
By default, it rotates clockwise.

{
autoplay: true,
projection: new EquirectProjection({
src: "/pano/equirect/veste.jpg",
})
}

Detailed options

For option details, see AutoplayOptions

{
autoplay: {
delay: 5000,
delayOnMouseLeave: 1000,
speed: -2,
pauseOnHover: true
},
projection: new EquirectProjection({
src: "/pano/equirect/veste.jpg",
})
}