This post has been edited 3 times, last edit by "indexofrefraction" (Feb 17th 2022, 11:41am)
|
|
Source code |
1 2 3 4 5 |
<hotspot
...
onover="tween(fillcolor,0x00FF00);"
onout="tween(fillcolor,0x777777);"
/>
|
Location: Netherlands
Occupation: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer
: https://pame.virtualtuur.comThank you for the support. I have done it, but what if I want the polygon point to be transparent and disappear after hovering?Hi,
in your video there is a polygonal hotspots that changes its color on hovering.
That would be possible e.g. this way:
![]()
Source code
1 2 3 4 5<hotspot ... onover="tween(fillcolor,0x00FF00);" onout="tween(fillcolor,0x777777);" />
The tween changes the current fillcolor to the given one and that happens when the mouse comes over and moves out the hotspots.
(btw - I have removed your duplicated posts)
Best regards,
Klaus
Location: Netherlands
Occupation: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer
Quoted
but what if I want the polygon point to be transparent and disappear after hovering?
|
|
Source code |
1 |
onout="tween(fillalpha,0);" |
: https://pame.virtualtuur.comhttps://www.youtube.com/watch?v=FFXarGTcUDc
Quoted
but what if I want the polygon point to be transparent and disappear after hovering?
![]()
Source code
1 onout="tween(fillalpha,0);"
you could also add: set(enabled, false) there, or removehotspot(bla); (bla is the name of the hotspot)
but that depends on if you want to keep the hotspot or remove it definitely.
Tuur![]()
Location: Netherlands
Occupation: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer
: https://pame.virtualtuur.comJust set the fillalpha to 0 and the fillcolor as desired.
Onover tween the fillalpha to 1 (or 0.4 or what wver you want)
Onout tween it to 0
Tuur![]()
Thank you. I got the border color worked out, but still not the opacity inside the polygon. If I leave fillcolour or fillalpha = 0 the whole polygon disappears. Can you guide me?Just set the fillalpha to 0 and the fillcolor as desired.
Onover tween the fillalpha to 1 (or 0.4 or what wver you want)
Onout tween it to 0
Tuur![]()
Location: Netherlands
Occupation: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer
|
|
Source code |
1 |
<hotspot name="hs1" borderwidth="0" fillcolor="0xff0000" fillalpha="0" onover="tween(fillalpha,0.8)" onout="tween(fillalpha,0);" >. .. </hotspot> |
: https://pame.virtualtuur.com