Jump to content
Search Community

Gsap svg Rotation

Aldrin test
Moderator Tag

Recommended Posts

I'm not sure I understand your goal correctly, but here's one approach to making an element orbit: 

See the Pen vYRwWOV?editors=1010 by GreenSock (@GreenSock) on CodePen

 

I wrapped another <g> so that I could counter-rotate the inner group while the outer group is rotating in the opposite direction. You're using some invalid ID values too, just so you know. 

 

There are many ways to accomplish the orbiting - this is one of the simpler approaches in my opinion (given your setup). 

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