Jump to content
Search Community

Cant start multiple animations at the same origin ...

MeherG test
Moderator Tag

Go to solution Solved by ZachSaucier,

Recommended Posts

  • Solution

Hey MeherG and welcome to the GreenSock forums. You have a couple of options here.

 

The best is probably to use a single SVG element instead of creating a new one each click. Just create a new heart path each click (or, even better, reuse the ones that you've made already) and append it to the SVG instead of creating a whole new SVG element each time.

 

The alternative is to absolutely position your SVGs over each other but then you have a bunch of elements for no reason.

 

I also noticed that you're using the old object form for your eases. We recommend the condensed string form instead:

 

  • Like 1
  • Thanks 1
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...