Jump to content
GreenSock

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

How Do I Space Objects Evenly Around A 3D Carousel And Rotate It?

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,

 

I love your product and think it's intuitive and powerful. I am working with the CSS Transforms and I am working with the bottom example under the section:

transformOrigin

 

example at:

 

http://www.greensock.com/css3/

 

with the code:

 

TweenMax.to(box2, 3, {css:{rotationY:360, transformOrigin:"left 50% -200"}})

It works fine for that one square, but I am trying to figure out how to space items evenly around the "imaginary sphere" that the cube is rotating around.I tried putting both a delay of like .15 on the second cube. That kinda-sorta worked. I also tried putting a little bit of a margin on the second cube, that quasi worked but seems to offset the rotation of the imaginary sphere.

 

Putting them both in one container div, just rotated them both the same instead of individually. Attached is a zip file of what I'm working with and if the attachment doesn't work, the live version is at:

 

http://www.doublesta...eSwordfish.html

 

 

 

Any help would be greatly appreciated:

 

Thanks,

J

Link to comment
Share on other sites

Thanks Carl. You never cease to amaze me. Ur a stone code, coding pimp :)

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