Jump to content
GreenSock

Search In
  • More options...
Find results that contain...
Find results in...
lynette

Exit url and youtube progress bar

Recommended Posts

Hi, 

 

I have placed a Youtube video in my banner which shows after a few animations. It is working fine.

 

The issue is I have given the exit id which is over the whole banner, a z-index of (for example) 40;

 

Because of this z-index, I am unable to click on the progress bar of the youtube video to skip sections of the video. If I take the Z-index off the exit, it works, but then when I go back when I click on the banner again, on the video, it just plays the video, doesn't take me to my exit url. I need the z-index on the exit for that is the exit for the ad.

 

Is there a way around this?

 

 

Link to post
Share on other sites

Hi lynette,

 

You can listen for video events and change the z-index of the video and clicktag as needed.

 

You can change the z-index with GSAP like this:

TweenMax.set("#element", {zIndex:3});
  • Like 3
Link to post
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.

×