egghead.io
  1. 1
    Setup GreenSock as a Module with Parcel
    1m 36s
  2. 2
    Animate and Center an Element to a Click Event with GreenSock
    2m 55s
  3. 3
    Rotate an Element Based on Previous Values with GreenSock
    1m 40s
  4. 4
    Create Animation Steps with GreenSock's Timeline
    1m 27s
  5. 5
    Pause or Resume an Animation by Checking isActive with GreenSock
    1m 5s
  6. 6
    Manually Control the Animation with progress in GreenSock
    1m 54s
  7. 7
    Animate From a Variable Point with from and fromTo in GreenSock
    1m 20s
  8. 8
    Control an Array of Elements with the Same Animation in GreenSock
    2m 12s
  9. 9
    Stop Animations with killTweensOf and killAll in GreenSock
    1m 21s
  10. 10
    Animate Between CSS Classes with GreenSock
    2m 45s
  11. 11
    Spin Elements in 3d with GreenSock
    1m 19s
  12. 12
    Control the Shared 3d Perspective of Multiple Elements with GreenSock
    3m 37s
  13. 13
    Loop a Tween Forever Using Yoyo and Repeat with GreenSock
    1m 16s

Rotate an Element Based on Previous Values with GreenSock

John Lindquist
InstructorJohn Lindquist
  • greensock
    GreenSock

Share this video with your friends

Send Tweet

Rotating an element with GreenSock is as simple as changing the rotation property using TweenMax. But there's also a hugely convenient trick using the += or -+ syntax as a string that allows you to adjust based on the previous value of the rotation.

illustration for Create Amazing Animations with GreenSock

Course

Create Amazing Animations with GreenSock

Build your Developer Portfolio and climb the engineering career ladder.
  • Search
  • Talks
  • Podcasts
  • Machine
  • Pricing
  • Store
©egghead.io
Terms & Conditions