jordan97 Posted October 11, 2022 Share Posted October 11, 2022 Hello, Can somebody please help me adding a hover to and object. I need that when I click on the girl, it reveals the text. What will be the code/property for that?graphic 3.zip See the Pen MWGZomK by Jassi-Jordan (@Jassi-Jordan) on CodePen Link to comment Share on other sites More sharing options...
GreenSock Posted October 12, 2022 Share Posted October 12, 2022 Your demo looks like it's attempting to link to your local files, but those are all missing so your demo is totally unworkable. In general, though, a hover could look something like: yourElement.addEventListener("mouseenter", () => { // hover animation here }); yourElement.addEventListener("mouseleave", () => { // end hover animation here }); If you still need some help, just provide a very basic minimal demo with some simple colored <div> elements to show the general idea (not your real project) and we'd be happy to take a peek. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now