Jump to content
GreenSock

DraggablePlugin

.tween

.tween : Tween

[read-only] The Tween instance that gets created as soon as the mouse (or touch) is released (when throwProps is true). This allows you to check its duration, .pause() or .resume() it, change its timeScale, or whatever you want.

Details

Tween - The tween instance that gets created as soon as the mouse (or touch) is released (when throwProps is true) - this allows you to check its duration, pause() it, resume() it, change its timeScale, or whatever you want. Keep in mind that a new tween is created each time the element is “thrown”. You can easily get it when the user releases the mouse (or touch) by referencing this.tween inside the onDragEnd callback.

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