I am building a page using the typical Ordered List elements <ol><li></ol>. The first elements are static and were added via the Webflow Designer. They are followed by a few list items added dynamically using Javascript.
I created interactions for the “static” list items and expected them to work with the dynamically added items too. But it turns out they don’t. Even after making sure they use the exact same structure and classes.
My guess is that Webflow binds its interactions to existing elements on page load.
Is there a way to bind Webflow interactions to elements after the page has loaded?
Or is there a way to make webflow wait for my script to add elements before it runs its biding script?
It works wonderfully. However, I found that it also prevents “Scroll into view” animations to play when they are already visible on page. Which means you have to scroll manually in order to start them. Maybe you also know a special Webflow method to do that? How did you learn about the other one?
Anyway, these two lines of code (found here) do the job: