Jump to content
GreenSock

skavish

Nested transform

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

hey,

 

I am curious if it's somehow possible to created nested transform animations. So let's say I have an div and I apply some transform tweens to it. Inside that div I have some other objects, images, other divs with their own transform tweens. Basically I want to have nested transforms to be relative to the parent transforms, not absolute. 

Like it's done in flash for example, i.e. I need MovieClip.

 

Any ideas?

Thanks!

Link to comment
Share on other sites

Hello skavish, and Welcome to the GreenSock forum!

 

GSAP is very performance driven and can handle nested transforms on elements with ease. GSAP is also able to perform complex transforms on elements, half-way through the animation without the limitations of CSS animations/keyframes or CSS transitions.

 

I am sure if you put together a codepen example we can help you with your issue!

 

 

:)

Link to comment
Share on other sites

Hi and welcome to the GreenSock forums,

 

When I think of nested transforms I think of something like this: http://codepen.io/GreenSock/pen/XXEdar

 

From what I recall Flash would handle this exactly the same way.

 

As Jonathan said, a demo would really help. Feel free to fork my demo and change it so that we can see how nested transforms are not working as expected. 

 

Thanks!

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