new Ease.elastic()
Elastic easings.
Methods
-
staticEase.elastic.in()
-
Elastic In.
Formulaif(x==0.0) return 0.0; if(x==1.0) return 1.0; return -((2.0^(10.0*(x-=1)) * sin((x-0.075)*PI*2.0*3.3333));
-
staticEase.elastic.inout()
-
Elastic In-Out
Formulaif(x==0.0) return 0.0; if(x==1.0) return 1.0; if (x < 1.0) return -0.5*((2.0^(10.0*(x-=1.0)))*sin((x-0.1125)*PI*2.0*2.2222)); return (pow(2.0,-10.0*(x-=1)) * sin((x-0.1125)*PI2*2.22222)*0.5) + 1.0;
-
staticEase.elastic.out()
-
Elastic Out.
Formulaif(x==0.0) return 0.0; if(x==1.0) return 1.0; return (2.0^(-10.0*x)) * sin((x-0.075)*PI*2.0*3.3333)+1.0);