Jump to content
GreenSock

DraggablePlugin

.endRotation

.endRotation : Number

[read-only] [only applies to type:"rotation"] The ending rotation of the Draggable instance which is calculated as soon as the mouse/touch is released after a drag, meaning you can use it to predict precisely where it'll land after a throwProps flick.

Details

Number - [only applies to type: "rotation" Draggable objects] The ending rotation of the Draggable instance. endRotation gets populated immediately when the mouse (or touch) is released after dragging, even before tweening has completed. This makes it easy to predict exactly what angle the element will land at (useful for throwProps: true Draggables where momentum gets applied and you want to predict where it’ll land).

Copyright 2017, GreenSock. All rights reserved. This work is subject to theterms of useor for Club GreenSock members, the software agreement that was issued with the membership.
×