Jump to content
Search Community

Hover triggers sequence of animations

MartyG test
Moderator Tag

Go to solution Solved by PointC,

Recommended Posts

Hi everyone,

I am trying to have a hover trigger a sequence of animations on different elements in an SVG. The goal: hover over the volcano, and cause these elements to appear in sequence: lavaPlume, cloud2, and textVol. On mouseout, they disappear (in reverse order or all at once). 

I can animate a single element, but adding multiple elements into the function gives me an error:

jeep-test19.htm:41689 Uncaught TypeError: gsap.to(...).to is not a function

 

I also need to have three volcanos, each of which work the same (only the text differs).

 

I have a feeling I am committing some syntax error on stringing together the subactions under "action" function.  Many thanks!

See the Pen BapWQRm by mrsgorgon (@mrsgorgon) on CodePen

Link to comment
Share on other sites

21 hours ago, PointC said:

Is this what you needed?

 

 

Happy tweening.

:)

Uh OH! I thought it was solved, but there's a wrinkle!  I need it to work in Internet Explorer 10. I recall something about the arrow => not working in IE. Can you help again?

 

Link to comment
Share on other sites

11 minutes ago, PointC said:

Alas, my client requires IE10. Perhaps I'm being punished for my sins.  THanks very much, that worked.

 

IE10???? What madness is this? ;)

 

I think this will work.

 

 

Happy tweening.

 

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