flow like the river
This commit is contained in:
commit
013fe673f3
42435 changed files with 5764238 additions and 0 deletions
37
BACK_BACK/node_modules/d3-ease/src/back.js
generated
vendored
Executable file
37
BACK_BACK/node_modules/d3-ease/src/back.js
generated
vendored
Executable file
|
|
@ -0,0 +1,37 @@
|
|||
var overshoot = 1.70158;
|
||||
|
||||
export var backIn = (function custom(s) {
|
||||
s = +s;
|
||||
|
||||
function backIn(t) {
|
||||
return (t = +t) * t * (s * (t - 1) + t);
|
||||
}
|
||||
|
||||
backIn.overshoot = custom;
|
||||
|
||||
return backIn;
|
||||
})(overshoot);
|
||||
|
||||
export var backOut = (function custom(s) {
|
||||
s = +s;
|
||||
|
||||
function backOut(t) {
|
||||
return --t * t * ((t + 1) * s + t) + 1;
|
||||
}
|
||||
|
||||
backOut.overshoot = custom;
|
||||
|
||||
return backOut;
|
||||
})(overshoot);
|
||||
|
||||
export var backInOut = (function custom(s) {
|
||||
s = +s;
|
||||
|
||||
function backInOut(t) {
|
||||
return ((t *= 2) < 1 ? t * t * ((s + 1) * t - s) : (t -= 2) * t * ((s + 1) * t + s) + 2) / 2;
|
||||
}
|
||||
|
||||
backInOut.overshoot = custom;
|
||||
|
||||
return backInOut;
|
||||
})(overshoot);
|
||||
Loading…
Add table
Add a link
Reference in a new issue