gsap-customease
gsap-customease copied to clipboard
CustomEase plugin for Greensock
CustomEase plugin for Greensock
GSAP plugin for custom eases building.
Usage
- Connect plugin:
<script src="customease.js"></script> - Use:
CustomEase.create('test', [{s:0,cp:-0.014,e:0.232},{s:0.232,cp:0.478,e:0.984},{s:0.984,cp:1.49,e:0.996},{s:0.996,cp:0.502,e:1}]);
TweenMax.to(document.getElementById('divy'), 2, { x: 400, ease: CustomEase.byName('test') });
What is the strange awkward second argument?
That is ease data. You can get it visiting Greensock`s custom eases builder fo ActionScript and copying array as shown on the screenshot below.

Also you can use helper.