Jump to content
GreenSock

QuickTip: Directional Rotation


| GreenSock
27580

Note: This page was created for GSAP version 2. We have since released GSAP 3 with many improvements. While it is backward compatible with most GSAP 2 features, some parts may need to be updated to work properly. Please see the GSAP 3 release notes for details.

With some animation engines it can be frustrating trying to get something to rotate in a specific direction. With GSAP you can explicitly set the direction or let GSAP figure out the shortest distance.

Watch the video

Interactive demo

See the Pen DirectionalRotation Visualizer by GreenSock (@GreenSock) on CodePen.

Check out the DirectionalRotation Plugin docs for more info.

Get an all-access pass to premium plugins, offers, and more!

Join the Club

We love seeing what you build with GSAP. Don't forget to let us know when you launch something cool.

- Team GreenSock



User Feedback

Recommended Comments

There are no comments to display.



Guest
This is now closed for further comments

×