Hi,
the
sprite property links to the the internal div element a layer element (or a hotspot element defined with
renderer="css3d"):
https://krpano.com/docu/xml/#layer.sprite
Here an example to access it and set some custom CSS property:
https://krpano.com/forum/wbb/index.php?p…76225#post76225
The same could do also done to set the CSS id:
|
Source code
|
1
2
3
4
5
6
7
|
<action name="set_css_id" type="Javascript">
caller.sprite.id = args[1];
</action>
<layer ...
onloaded="set_css_id('my_css_id');"
/>
|
or to add CSS classes by using
className,
or do all that directly via JS from external by using the JS-APIs:
https://krpano.com/docu/js/#top
But when using custom CSS styles avoid changing the sizes in any way, that could break the layout - and note that some css properties will be set/used already by krpano itself.
Best regards,
Klaus