ThrowPropsPlugin.defaultResistance

ThrowPropsPlugin.defaultResistance : Number

[static] The default resistance that is used to calculate how long it will take for the tweening property (or properties) to come to rest by the static ThrowPropsPlugin.to() and ThrowPropsPlugin.calculateTweenDuration() methods.

Details

The default resistance that is used to calculate how long it will take for the tweening property (or properties) to come to rest by the static ThrowPropsPlugin.to() andThrowPropsPlugin.calculateTweenDuration() methods. Keep in mind that you can define a resistance value either for each individual property in the throwProps tween like this:

ThrowPropsPlugin.to(obj, {throwProps:{x:{velocity:500, resistance:150}, y:{velocity:-300, resistance:50}}});

OR you can define a single resistance value that will be used for all of the properties in that particular throwProps tween like this:

ThrowPropsPlugin.to(obj, {throwProps:{x:500, y:-300, resistance:150}});

//-OR-

ThrowPropsPlugin.to(obj, {throwProps:{x:{velocity:500, max:800, min:0}, y:{velocity:-300, max:800, min:100}, resistance:150}});
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.

Get GSAP

Version: 1.20.4 updated 2018-02-15

Core

    Extras

      Plugins

        By using GreenSock code, you agree to the terms of use.

        Help support GreenSock by becoming a member

        Join Club GreenSock