We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b17b328 commit 4379aa0Copy full SHA for 4379aa0
1 file changed
Libraries/Animated/Easing.js
@@ -69,10 +69,7 @@ class Easing {
69
* http://tiny.cc/elastic_b_1 (default bounciness = 1)
70
* http://tiny.cc/elastic_b_3 (bounciness = 3)
71
*/
72
- static elastic(bounciness: number): (t: number) => number {
73
- if (arguments.length === 0) {
74
- bounciness = 1;
75
- }
+ static elastic(bounciness: number = 1): (t: number) => number {
76
var p = bounciness * Math.PI;
77
return (t) => 1 - Math.pow(Math.cos(t * Math.PI / 2), 3) * Math.cos(t * p);
78
};
0 commit comments