Skip to content
This repository has been archived by the owner on Jan 24, 2018. It is now read-only.

Commit

Permalink
Short description of custom easing
Browse files Browse the repository at this point in the history
It's very simple and figured many users would want it.
  • Loading branch information
Andreas Larsen committed Mar 13, 2015
1 parent 1da1627 commit 6b86aa0
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions README.md
Expand Up @@ -534,6 +534,20 @@ skrollr ships with some built in functions:
* outCubic
* bounce: Bounces like a ball. See https://www.desmos.com/calculator/tbr20s8vd2 for a graphical representation.

**Custom easing**

* Use [this](http://www.timotheegroleau.com/Flash/experiments/easing_function_generator.htm) generator
* Insert the given polynomial coeficients instead of t, t2, t3, t4 and t5
```
t5*(p*p*p*p*p) + t4*(p*p*p*p) + t3*(p*p*p) + t2*(p*p) + t*p
```
Example shown with the values for easeOutElasticBig
```
easeOutElasticBig: function(p) {
return 56*(p*p*p*p*p) - 175*(p*p*p*p) + 200*(p*p*p) - 100*(p*p) + 20*p;
}
```

skrollr.get()
-----

Expand Down

0 comments on commit 6b86aa0

Please sign in to comment.