Jump to content
Search Community

Moving element in an SVG to same position as another element

JeremyFlight test
Moderator Tag

Recommended Posts

I have this setup in my HTML file:

<svg>
  <g id="thing1">
  ...
  </g>
  <g id="thing2">
  ...
  </g>
</svg>

And I'm running a timeline like this:
 

timeline.to("#thing1", { 
  duration: 0.5,
  ease: "none",

  x: ??,

  y: ??
});

How do I make #thing1 animate to the position of #thing2?

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