Triggering Webflow interactions with a button inside a Spline scene

With the latest addition of Spline scenes within Webflow, it’s easy to create Webflow elements like buttons which trigger Spline animations, but I’d like to know if it’s possible the other way too?

I’d like to create a button as part of a Spline scene, and within Webflow listen for when that button is pressed and trigger a Webflow interaction. Is this possible?

3 Likes

I’m looking for the same thing. Couldn’t find anything yet.

let me know if you all find a solution for this

Also looking for a solution like this!

In the end I abandoned this idea and created my interaction without Spline, but I do think it should be possible in Spline. For those commenting because you are interested in solving the same problem, here’s how I’d approach it:

  1. Add a div to your Webflow project and give it an on-click interaction with whatever you want to happen when the button in your Spline scene is pressed.

  2. (The hard bit) Find the event that is triggered when pressing the Spline element on your published Webflow site. If this can’t be found in your page’s source I’d reach out to the Spline team to ask how to find it.

  3. Add some custom code which clicks your new div (and fires your Webflow interaction) when the Spline event is triggered.

I’m not 100% sure this is possible, but if I absolutely needed to achieve it, above is how I’d start.