We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1da1627 commit 6b86aa0Copy full SHA for 6b86aa0
README.md
@@ -534,6 +534,20 @@ skrollr ships with some built in functions:
534
* outCubic
535
* bounce: Bounces like a ball. See https://www.desmos.com/calculator/tbr20s8vd2 for a graphical representation.
536
537
+**Custom easing**
538
+
539
+* Use [this](http://www.timotheegroleau.com/Flash/experiments/easing_function_generator.htm) generator
540
+* Insert the given polynomial coeficients instead of t, t2, t3, t4 and t5
541
+```
542
+t5*(p*p*p*p*p) + t4*(p*p*p*p) + t3*(p*p*p) + t2*(p*p) + t*p
543
544
+Example shown with the values for easeOutElasticBig
545
546
+easeOutElasticBig: function(p) {
547
+ return 56*(p*p*p*p*p) - 175*(p*p*p*p) + 200*(p*p*p) - 100*(p*p) + 20*p;
548
+}
549
550
551
skrollr.get()
552
-----
553
0 commit comments