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

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

moved to banner forum

Link to comment
Share on other sites

Mouse Over and Mouse Out, not Mouse Down

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