Custom onHover action   [SOLVED] - View the solution

Share your tips and tricks here or get help with any Panotour 2.0+ problem!
No bug reports (of any kind) in this forum!
no avatar
Navalex
New member
 
Topic author
Posts: 4
Likes: 0 post
Liked in: 1 post
Joined: Tue Aug 21, 2018 1:49 pm
Location: Antony, France
Info

Custom onHover action

by Navalex » Tue Aug 21, 2018 1:54 pm

Hi everybody,

I'm using Panotour Pro V2.5.14 and I need to add custom animation when the mouse hover each Hotspot with krpano xml code. But I don't know how to add this animation to all hotspot. Is there any way to do that ?

Thanks,
Navalex.

User avatar
benji33
Kolor Team
 
Posts: 5848
Likes: 92 posts
Liked in: 199 posts
Joined: Tue Apr 09, 2013 10:59 am
Location: France
Info

Re: Custom onHover action

by benji33 » Tue Aug 21, 2018 2:02 pm

Apply changes into the hotspot style.
Into the generated _skin.xml file you'll find many style corresponding to your spots.
Into them you'll be able to add the "onhover" and "onout" events of krpano to fire actions.

no avatar
Navalex
New member
 
Topic author
Posts: 4
Likes: 0 post
Liked in: 1 post
Joined: Tue Aug 21, 2018 1:49 pm
Location: Antony, France
Info

Re: Custom onHover action

by Navalex » Tue Aug 21, 2018 2:04 pm

The problem is that, if i do this i’ll de do it after every tour generation.

User avatar
benji33
Kolor Team
 
Posts: 5848
Likes: 92 posts
Liked in: 199 posts
Joined: Tue Apr 09, 2013 10:59 am
Location: France
Info

Re: Custom onHover action

by benji33 » Tue Aug 21, 2018 2:27 pm

Yes. You'll have to do it once to test it and apply it at the end of the project generation once into the validation process.
I know it's an issue to work with that.

An other way can be to use the "Include an XML file" plugin and copy the style tag with the right id and add the onhover/onout event to try to see if the style is overwritten by this one.

no avatar
Navalex
New member
 
Topic author
Posts: 4
Likes: 0 post
Liked in: 1 post
Joined: Tue Aug 21, 2018 1:49 pm
Location: Antony, France
Info

Re: Custom onHover action  [SOLVED]

by Navalex » Tue Aug 21, 2018 2:53 pm

Thank to you I found a solution a little similar.
I took the actions that are defined by panotour for onhover and onout and I rewrote them in a custom xml file

benji33 likes this post.


Who is online

Users browsing this forum: No registered users and 5 guests