Good day,
i have been searching the entire web for weeks looking for a solution to this : if i export webflow code and make a vue component out of a div from the exported html that has an interaction attached to it, the interaction doesn’t work. even if it looks exactly the same when you look at it with chrome inspect, it just doesn’t work. so my question is, is it even possible to export webflow code and use it in a vue project with interactions working? and if it is, HOW???
You can, but you have to restart Webflow interactions system after Vue has parsed your components. Webflow.require(‘ix2’).init(); something like that after Vue has loaded will restart webflow interactions and will make them work
That actually worked. thanks. for people wandering how to get it working with vue. you gotta put this in the mounted life cycle hook like so :
mounted() {
window.Webflow.require(“ix2”).init();
}