Jump to content
Search Community

Having issue with adding hover to a svg object in gsap

jordan97 test
Moderator Tag

Recommended Posts

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

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