You are not logged in.

virtual pete

Intermediate

  • "virtual pete" started this thread

Posts: 245

Location: Nerja

Occupation: Holiday rentals Nerja Costa del Sol

  • Send private message

1

Saturday, March 19th 2016, 6:02pm

Hotspot with normal and mouseover state

Hi, can anyone please advise how I create a hotspot that highlights when you mouse over. I am trying to create a similar effect to that used by Matterport having the hotspots linking to the next scene but in some cases they are moving around the room so I do not want to initial state to be too highlighted, obvious to be seen but not so much to ruin the pano and then when they are moused over or clicked then a highlighted or even better "glow" effect applies to the hotpsot.

Hope it makes sense but you can see what I mean on the matteport demo

Many thanks

Umalo

Professional

Posts: 1,051

Location: Osijek, Croatia, EU

  • Send private message

2

Monday, March 21st 2016, 11:46am

Shouldn't that be just initial alpha definition e.g. alpha="0.3" -> set onhover="tween(alpha,1)" and onout="tween(alpha,0.3)"

virtual pete

Intermediate

  • "virtual pete" started this thread

Posts: 245

Location: Nerja

Occupation: Holiday rentals Nerja Costa del Sol

  • Send private message

3

Monday, March 21st 2016, 12:57pm

Thanks Umalo, do I need 2 images or just one image and apply that bit of code?


I tried this but it did not work

<!-- place your scene hotspots here -->

<hotspot name="spot1" style="skin_hotspotstyle" alpha="0.3" -> set onhover="tween(alpha,1)" and onout="tween(alpha,0.3)" ath="-114.371" atv="7.563" linkedscene="scene_B-Lounge" />

This post has been edited 1 times, last edit by "virtual pete" (Mar 21st 2016, 1:10pm)


Umalo

Professional

Posts: 1,051

Location: Osijek, Croatia, EU

  • Send private message

4

Monday, March 21st 2016, 3:22pm

you see you have style there. you are using krpano default arrows style -> That mean load all other attributes from style where it is definied. In your case you need to change and adapt alpha in style