I've added a webpage, but I'm not the one who uploads to the site.
As far as I know, the webpage ends up in the iframe , which is what the problem of activating the script is: I interact with document , window (the effects start when a certain place on the page is reached).
I would like to know what kind of specificity is this for working with an iframe ?
Code snippet:
$(window).scroll(function() { if($(window).scrollTop() + $(window).height() > $(document).height() - 10950) { $('.anim-31').addClass('anim-3-action anim-31-ef'); $('.anim-32').addClass('anim-3-action anim-32-ef'); $('.anim-33').addClass('anim-3-action anim-33-ef'); $('.anim-34').addClass('anim-3-action anim-34-ef'); $('.anim-35').addClass('anim-3-action anim-35-ef'); };