Skip to content

Commit b2f602f

Browse files
committed
Add smooth function and set it as default ease.
1 parent 803ad3f commit b2f602f

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

MojoJS.animation.js

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
* GitHub : https://github.com/scottcgi/MojoJS-Animation
99
*
1010
* Since : 2010-05-16
11-
* Update : 2020-2-2
12-
* Version: 2.0.3
11+
* Update : 2021-8-17
12+
* Version: 2.1
1313
*/
1414

1515
(function(window) {
@@ -620,7 +620,7 @@
620620
isQueue : true,
621621
complete : null,
622622
args : null,
623-
easing : "sineOut",
623+
easing : "smooth",
624624
steps : null,
625625
delay : 0,
626626
id : "",
@@ -725,6 +725,10 @@
725725
return time;
726726
},
727727

728+
smooth: function(time) {
729+
return time * time * (3.0 - 2.0 * time);
730+
},
731+
728732

729733
quadraticIn: function(time) {
730734
return time * time;

0 commit comments

Comments
 (0)