autoplay
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.
- JSON
- Javascript
- React
- Angular
- Vue@2
- Vue@3
- Svelte
{
autoplay: true,
projection: new EquirectProjection({
src: "/pano/equirect/veste.jpg",
})
}
Detailed options
For option details, see AutoplayOptions
- JSON
- Javascript
- React
- Angular
- Vue@2
- Vue@3
- Svelte
{
autoplay: {
delay: 5000,
delayOnMouseLeave: 1000,
speed: -2,
pauseOnHover: true
},
projection: new EquirectProjection({
src: "/pano/equirect/veste.jpg",
})
}