From e9d6b71dd9fa5eb06dd6742a1c1318cbc5ae58c8 Mon Sep 17 00:00:00 2001 From: Oliver Hoffmann Date: Wed, 23 Mar 2016 12:47:13 +0100 Subject: [PATCH] Bake 'easeOutQuad' easing function into nag module. --- src/definitions/modules/nag.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/definitions/modules/nag.js b/src/definitions/modules/nag.js index 6e57e3406..63cf2a573 100644 --- a/src/definitions/modules/nag.js +++ b/src/definitions/modules/nag.js @@ -483,4 +483,11 @@ $.fn.nag.settings = { }; +// Adds easing +$.extend( $.easing, { + easeOutQuad: function (x, t, b, c, d) { + return -c *(t/=d)*(t-2) + b; + } +}); + })( jQuery, window, document );