Jump to content
Search Community

Hover states with MorphSVG/timeline

EmAnd test
Moderator Tag

Go to solution Solved by Cassie,

Recommended Posts

Hi! 

 

- I would like to start a timeline on mouseenter, that will run infinite until mouseleave. 

- During the timeline I don't want it to morph with the initial circle (shape1)

- On mouseleave I would like it to return to initial circle(shape1) smoothly. 

 

1. Right now my mouseleave function returns Uncaught TypeError: tl.paus is not a function 

2. The progress[0] makes it hacky. 

 

Can someone point me in the right direction in how to structure it? :) 

 

See the Pen NWyrXKw by emmanders (@emmanders) on CodePen

Link to comment
Share on other sites

Haha, ah, thanks a lot! Do you have any ideas on:

- During the timeline I don't want it to morph with the initial circle (shape1)

- On mouseleave I would like it to return to initial circle(shape1) smoothly. 

 

 

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