Jump to content
GreenSock

Search In
  • More options...
Find results that contain...
Find results in...
aries

How maintain SVG matrix status

Go to solution Solved by Diaco,

Warning: Please note

This thread was started before GSAP 3 was released. Some information, especially the syntax, may be out of date for GSAP 3. Please see the GSAP 3 migration guide and release notes for more information about how to update the code to GSAP 3's syntax. 

Recommended Posts

Hello everyone,

 

I am just getting started to use GSAP to animate SVG graphics. I want move a 'leg' and yet the shank separates from the 'leg' in moving.

The key codes are:

"

TweenLite.to(leg, 1, {rotation:"-30",svgOrigin:"155 150"});
TweenLite.to(shank, 1, {rotation:"30",svgOrigin:"155 250"});
"

Though I think it is the problem of maintaining the status of matrix of the shank, I do not know how to fix that. Somebody can help? Thanks. 

See the Pen Gpgvaw by aries (@aries) on CodePen

Link to comment
Share on other sites

Thank Diaco,

it is really one good solution. I very appreciate your help. :-)

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