Skip to main content
4mo ago

Help with Rive Animation Trigger Issues in Webflow

Hi everyone,

I’ve created an animation in Rive and successfully uploaded it to my Webflow site. The animation includes three buttons that appear at different stages to control specific actions (these buttons never appear at the same time):

  1. "Start": Triggers the animation to start.

  2. "Let's do it": Acts as a decision point to progress the animation.

  3. "Restart": Restarts the animation after it ends.

In Rive, I’ve set up trigger inputs for each action and added listeners to ensure that the correct button triggers the corresponding action and it works as planned.

When I test the setup in Webflow (after importing the .riv file and assigning 3 click interactions to the .riv element, all actions are triggered by clicking anywhere on the .riv element, instead of just within their respective button target areas.

My suspicion is that Webflow treats the .riv file as a single element, and since the layers aren’t visible, the interactions aren’t recognizing the button-specific target zones.

Has anyone encountered this issue? Is it even possible to get accurate, target-specific interactions in Webflow when using Rive animations? I’d love to hear any insights or solutions you might have!

Thanks in advance!

3 replies
4mo ago

I wasn't sure whether or not the 'start' button is inside the Rive. If so, I would expect it to use the hit area you've defined. Is this how you've set up your listeners: https://rive.app/community/doc/listeners/doceaiA9rRW1

4mo ago

Yeah, all buttons are inside rive. I believe I have the listeners set up correctly, I'll attach a video.

4mo ago

Wohhhh, I think I just solved it? Although, I don't understand how it works. I went in to Webflow and I removed the interactions I had set. It now works as expected, the trigger only fires when the hit area is clicked. I had assumed I needed to set up an interaction for each! I guess it would be beneficial to learn why would I ever need to set up an interaction in Webflow?