Trigger Webflow interactions within custom code block

Xano API for backend data, webflow for the frontend.

In an embed component, JavaScript uses a template which is made in Webflow and makes a clone of it for each item in the fetched data. The template that is being used is made by another designer who created animations with Webflow interactions. For example, an accordion that smoothly displays additional content and has a nice icon change animation.

The issue that I am having is that all interactions / triggers are lost when cloning the template.

Does anyone know how to solve this issue?

I guess that I am looking for a way attach Webflow interactions onto newly created html elements or for a way to add back the triggers for interactions when events are triggered in JavaScript.

Any help with this would be greatly appreciated!

Search in this forum “restart ix2”

1 Like


Webflow.require('ix2').init()Worked like a charm.

Thank you very much for your speedy reply.

1 Like