Skip to content

Commit

Permalink
Merge pull request #684 from ryanpwaldon/add-ease-out-in
Browse files Browse the repository at this point in the history
Add easeOutIn
  • Loading branch information
juliangarnier authored Oct 11, 2020
2 parents 3b36f0a + dd9130c commit c329454
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,8 @@ const penner = (() => {
eases['easeOut' + name] = (a, b) => t => 1 - easeIn(a, b)(1 - t);
eases['easeInOut' + name] = (a, b) => t => t < 0.5 ? easeIn(a, b)(t * 2) / 2 :
1 - easeIn(a, b)(t * -2 + 2) / 2;
eases['easeOutIn' + name] = (a, b) => t => t < 0.5 ? (1 - easeIn(a, b)(1 - t * 2)) / 2 :
(easeIn(a, b)(t * 2 - 1) + 1) / 2;
});

return eases;
Expand Down

0 comments on commit c329454

Please sign in to comment.