Rive -- Wordpress
Hey there!
I'm trying to connect my animation to my Wordpress website
https://rive.app/s/zQPttSGL6ECITT1skwOJSQ/
This is my hover animation .
I'm trying to do like at the home page, combination of Hover and clickable link that I try to add through the html.
There is any solution for this?
Target:
Hover+Click and going to other domain/link
Love the dinos!
The way to communicate from Rive to your website is through events. In your case, it looks like you already have listeners for Pointer Enter
and Pointer Exit
. Now you just need to create an event for each one.
Select the
Event Tool
and click anywhere on your stage to add a new event.Give each event a unique name
Select your listener, click the
+
and selectReport Event
. Now when the listener is triggered, your event will be fired.Subscribe to the event in your runtime: https://rive.app/community/doc/rive-events/docbOnaeffgr#subscribing-to-events
Now in your JS you can set your cursor to
cursor: pointer
Thanks!