Skip to content

Putoshi/gsap-customease

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

CustomEase plugin for Greensock

GSAP plugin for custom eases building.

Usage

  1. Connect plugin: <script src="customease.js"></script>
  2. 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.

instruction

Also you can use helper.

About

CustomEase plugin for Greensock

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%