Jump to content
GreenSock

icraig6666

Simple on/off button hover state in banner

Recommended Posts

Hi,
Currently I have a 300x600 banner with two images fading from one to the other.
Beneath these images I need  the cta to have a simple on/off hover state.
I have an svg as a symbol called cta_hover that is currently on alpha:0 and I need this to be alpha:1 on "mouseenter" and alpha:0 on "mouseleave".

Should I write the GSAP code for this in the actions panel/timeline or should I write in the published JS file?

Thanks in advance for any replies!

See the Pen KKKxVEY by fondella (@fondella) on CodePen

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