Effect example: CLICK
Is it possible to make an animation like in the example - zooming in from the "planet" view?
I'm using pannelum.js.
const viewer = pannellum.viewer('panorama', {
"type": "cubemap",
"cubeMap": [
"cube/front.jpg",
"cube/right.jpg",
"cube/back.jpg",
"cube/left.jpg",
"cube/top.jpg",
"cube/down-1.jpg"
],
"maxLevel": 20,
"autoLoad": true,
"hotSpots": [
<?php foreach ($hotspots as $hotspot): ?>
{
pitch: "<?php echo $hotspot['pitch']; ?>",
yaw: "<?php echo $hotspot['yaw']; ?>",
cssClass: "custom-hotspot",
createTooltipFunc: hotspotFn,
createTooltipArgs: "<?php echo $hotspot['name']; ?>",
name: "<?php echo $hotspot['name']; ?>",
category: "<?php echo $hotspot['category']; ?>",
marker: "<?php echo $hotspot['marker']; ?>",
<?php if ($zalogowany): ?>
clickHandlerFunc: hotspotClickFn,
id: <?php echo $hotspot['id']; ?>,
<?php endif; ?>
},
<?php endforeach; ?>
]
});