Custom Code stops working after using webflow interactions

Hey there,
I embeded a external hosted htmlpage (containing html css js and jquery) in my webflow page with iframe and it worked out just fine. Then I build a section sticky to the top, in which the content changes depending on the scroll-position.
Like this: How to Webflow: Switch content with scrolling interactions - Tutorial (2019) - YouTube
But in this construction the custom code doesn’t work anymore. Does anybody have an idea why?