Jump to content
Search Community

GSAP ScrollTrigger effect in HTML display ads

Ralph P test
Moderator Tag

Recommended Posts

Is there a way (even allowed) to use scrolltrigger in display ads? I have been using it in websites I have built but I have been asked to integrate it into our display ads. It seem like it won't work because ad live in a iFrame and it won't get scrolling data from the browser.

Link to comment
Share on other sites

I've never tried that, but I suspect you are correct. Security protocols wouldn't allow the iframe content to grab data about the parent page, although maybe there are some security settings you could put into the <iframe> to allow it. That'd require whoever is putting the display ads on their site to accommodate that, of course. 

 

If you can get the data, I suppose you could wire it up to ScrollTrigger.scrollerProxy(), sorta like smooth scrolling libraries do. 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...