I actually can’t believe I haven’t found more here on this topic - I found quite some related stuff but nowhere a proper answer to a thing I believe a lot more people/user would be interested in. Maybe I just didn’t realize that I’m complicated and there is an easy way to accomplish what I want.
I give you an easy example. I have the a popup on the landingpage that is fading-in with an animation delay of 2 seconds. I’m in my example talking about a cookie overlay.
I obviously in that case can’t use something like jquery’s dom-ready event or even an onload event, as the overlay is not yet there on the page and visible! How on earth can I find out somewhere in my custom code if something like an element has been faded in and is now on the page or even trigger maybe a function afterwards.
I mean I could obviousoly do a setTimout function and wait 2 seconds maybe. Or even have a while loop run to test if the element is on the page or not - but none of these seem like good ways of doing something like that.
Thanks for your help and feedback.
ps.: I could name tons more of such examples where you would want to either have a callback from an interaction within webflow or the other way around also. Like if you implement a custom library that maybe interferes with the normal page refreshes, you then want to trigger webflow interactions and functions manually for instance.