Skip to content

Instantly share code, notes, and snippets.

@larsenwork
Last active August 29, 2015 14:17
Show Gist options
  • Select an option

  • Save larsenwork/f8d36a70dcdf910f4972 to your computer and use it in GitHub Desktop.

Select an option

Save larsenwork/f8d36a70dcdf910f4972 to your computer and use it in GitHub Desktop.
How to convert Tim Groleau's easing functions into Skrollr easing functions

Use this generator

Insert the polynomial coeficients given by the generator 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 for easeOutElasticBig

<div data-0="opacity[easeOutElasticBig]:0"></div>
<script>
  $(function() { var s = skrollr.init({ 
    easing: {
      easeOutElasticBig: function(p) {
        return 56*(p*p*p*p*p) - 175*(p*p*p*p) + 200*(p*p*p) - 100*(p*p) + 20*p;
      }
    }
  });});
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment