Jump to content
GreenSock

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

Background Exit click and CTA effect onclick and hover

Go to solution Solved by Carl,

Warning: Please note

This thread was started before GSAP 3 was released. Some information, especially the syntax, may be out of date for GSAP 3. Please see the GSAP 3 migration guide and release notes for more information about how to update the code to GSAP 3's syntax. 

Recommended Posts

Hiya,

 

Is it possible to have the CTA button in a banner to have effects, when hovered and clicked and also to have the BG_Exit as well?

 

 

here is the code.:

 

function exitClickHandler(e) {
    console.log('exit');
  Enabler.exit('BackgroundExit');
}
 
 
function ctaClickHandler(e) {
 console.log('ctaexit');
  Enabler.exit('CTA Exit');
}
 
function ctaMouseDown(e) {
 console.log('mousedown');
 
      });
};
 
 
When the 'BackgroundExit' is z-indexed, then the CTA doesn't work, but when z-index is off Exit CTA works, but then the 'BackgroundExit' doesn't click.
 
Can anyone help on this issue??
 
Cheers, 
Lynette
Link to comment
Share on other sites

  • Solution

moved to banner forum

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.
×