Jump to content
Search Community

Color change on hover for button text and SVG path in a button

David Jirschitzka test
Moderator Tag

Go to solution Solved by Cassie,

Recommended Posts

hi,

i was working on a little tween but i can't manage to make it work.

My goal is (besides becoming a gsap master) just to change the color of the text and the svg-arrow to this light grey "#a1a1a1".

 

I'm not as deep into the javascript course i am working on right now to fully understand what i am doing here.

I took the tween from a codepen posted by cassie a while ago. But i cant manage to make the arrow change it's color.

 

Does it have to do with the selector i am using here? i changed to queryselectorAll but it didn't work as well. Any tips to get it working are appreciated. I spend a good two hours on this tween now and looking for some guidance. Thank you and cheers!

See the Pen rNdQBGq by david-j (@david-j) 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.
×
×
  • Create New...