MCPcopy Create free account
hub / github.com/codrops/RainEffect / _createBack

Function _createBack

demo/js/index.js:9307–9319  ·  view source on GitHub ↗
(n, f)

Source from the content-addressed store, hash-verified

9305
9306 //Back
9307 _createBack = function(n, f) {
9308 var C = _class("easing." + n, function(overshoot) {
9309 this._p1 = (overshoot || overshoot === 0) ? overshoot : 1.70158;
9310 this._p2 = this._p1 * 1.525;
9311 }, true),
9312 p = C.prototype = new Ease();
9313 p.constructor = C;
9314 p.getRatio = f;
9315 p.config = function(overshoot) {
9316 return new C(overshoot);
9317 };
9318 return C;
9319 },
9320
9321 Back = _wrap("Back",
9322 _createBack("BackOut", function(p) {

Callers 1

index.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected