Trigger event from within svg code?


(Erik) #1

Hi.
I’m kind of new to Hype and right now I’m making a svg animation with Hype and Vivus.

I’m trying to sync the svg animation with other events on the timeline but that’s a problem when different browsers seems to load the animation in different speed. The result is a non sync animation.

Can I trigger an action from within the svg code? For example when the last line of code in the svg animation is read go to a specific time or start the timeline.

/Erik


(Laurent) #2

Hello, perhaps you can check if the element exist (id, coordinates…) in the scene and then add your action.


(Erik) #3

Thanx for your answer. How would I do that? I’m not a wizard in coding :wink: