-
Notifications
You must be signed in to change notification settings - Fork 1
/
Animation.min.js
executable file
·7 lines (6 loc) · 4.18 KB
/
Animation.min.js
1
2
3
4
5
6
7
/*
Animation.js 0.1.5 - Copyright (c) 2010 Sam Holmes
Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php)
and GPL (http://www.opensource.org/licenses/gpl-3.0.html) licenses.
*/
eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('9(!1a.Y.R){1a.Y.R=e(a){D(g i=0,w=6.z;i<w;++i){9(6[i]==a){8 i}}8-1}}e j(d){d=d||{};6.k=0;6.h=0;6.J=Q;6.m=[];6.S=d.S||Q;6.y=d.y||1;6.r=d.r||G;6.M=d.M||G;6.v=d.v||G;6.o=d.o||[];6.1b=e(a,b){g c=a.A||a,r=a.r||G,v=a.v||G,h=a.h||b,o=a.o||[].1M.L(17,[2,17.z]);6.m.13({A:c,r:r,v:v,C:6.h,h:h,k:0,o:o});6.h+=h};9(F d.m==\'1i\'){D(g i=0;i<d.m.z;++i){6.1b.1j(6,d.m[i])}}6.1l=e(a){g b=6.m[a].h;6.m.12(a,1);D(g i=a,w=6.m.z;i<w;++i)6.m[i].C-=b;6.h-=b};6.1A=e(a){9(!6.J){9(F a!=\'P\')6.q(a);l 9(6.k>=6.h&&6.y>0)6.q(0);l 9(6.k<=0&&6.y<0)6.q(6.h);j.H.13(6);6.J=1o;9(F 6.r==\'e\')6.r()}};6.V=e(){g a=j.H.R(6);j.H.12(a,1);6.J=Q;9(F 6.v==\'e\')6.v()};6.1z=e(){6.V();6.q(0)};6.q=e(a){a=+a||0;a=f.1C(f.1K(a,6.h),0);9(a<6.k){D(g i=6.m.z-1;i>=0;--i){g b=6.m[i];9(a<=b.C){9(b.k!=0){b.k=0;b.A.L(b,[0].K(b.o))}}l{b.k=a-b.C;b.A.L(b,[b.k/b.h].K(b.o));11}}}l{D(g i=0,w=6.m.z;i<w;++i){g b=6.m[i];9(a>b.C+b.h){9(b.k!=b.h){b.k=b.h;b.A.L(b,[1].K(b.o))}}l{b.k=a-b.C;b.A.L(b,[b.k/b.h].K(b.o));11}}}6.k=a;9(F 6.M==\'e\')6.M()}}j.H=[];j.X=+16 1c();j.1p=1t(e(){g a=[].K(j.H);g b=+16 1c();D(g i=0,w=a.z;i<w;++i){g c=a[i];9(c.J){g d=c.k+(b-j.X)*c.y;9(c.S)9(d>c.h)c.q(d-c.h);l 9(c.y<0&&d<0)c.q(d+c.h);l c.q(d);l{c.q(d);9(d>=c.h||(c.y<0&&d<=0))c.V()}}}j.X=b},1x);j.E={18:\'14\',1B:e(t){8 j.E[j.E.18](t)},1D:e(t){8 t*t},14:e(t){8-1*t*(t-2)},1J:e(t){9((t*=2)<1)8.5*t*t;8-.5*((--t)*(t-2)-1)},1L:e(t){8 t*t*t},1y:e(t){8((t-=1)*t*t+1)},1N:e(t){9((t*=2)<1)8.5*t*t*t;8.5*((t-=2)*t*t+2)},1O:e(t){8 t*t*t*t},1U:e(t){8-1*((t-=1)*t*t*t-1)},1d:e(t){9((t*=2)<1)8.5*t*t*t*t;8-.5*((t-=2)*t*t*t-2)},1e:e(t){8 t*t*t*t*t},1f:e(t){8((t-=1)*t*t*t*t+1)},1g:e(t){9((t*=2)<1)8.5*t*t*t*t*t;8.5*((t-=2)*t*t*t*t+2)},1h:e(t){8-1*f.19(t*(f.n/2))+1},1k:e(t){8 f.I(t*(f.n/2))},1m:e(t){8-.5*(f.19(f.n*t)-1)},1n:e(t){8(t==0)?0:f.u(2,10*(t-1))},1q:e(t){8(t==0)?1:(-f.u(2,-10*t)+1)},1r:e(t){9(t==0)8 0;9(t==1)8 1;9((t*=2)<1)8.5*f.u(2,10*(t-1));8.5*(-f.u(2,-10*--t)+2)},1s:e(t){8-1*(f.O(1-t*t)-1)},1u:e(t){8 f.O(1-(t-=1)*t)},1v:e(t){9((t*=2)<1)8-.5*(f.O(1-t*t)-1);8.5*(f.O(1-(t-=2)*t)+1)},1w:e(t){g s=1.B;g p=0;g a=1;9(t==0)8 0;9(t==1)8 1;9(!p)p=.3;9(a<f.T(1)){a=1;g s=p/4}l g s=p/(2*f.n)*f.U(1);8-(a*f.u(2,10*(t-=1))*f.I((t*1-s)*(2*f.n)/p))},1E:e(t){g s=1.B;g p=0;g a=1;9(t==0)8 0;9(t==1)8 1;9(!p)p=.3;9(a<f.T(1)){a=1;g s=p/4}l g s=p/(2*f.n)*f.U(1);8 a*f.u(2,-10*t)*f.I((t*1-s)*(2*f.n)/p)+1},1F:e(t){g s=1.B;g p=0;g a=1;9(t==0)8 0;9((t*=2)==2)8 1;9(!p)p=(.3*1.5);9(a<f.T(1)){a=1;g s=p/4}l g s=p/(2*f.n)*f.U(1);9(t<1)8-.5*(a*f.u(2,10*(t-=1))*f.I((t*1-s)*(2*f.n)/p));8 a*f.u(2,-10*(t-=1))*f.I((t*1-s)*(2*f.n)/p)*.5+1},1G:e(t,s){9(s==P)s=1.B;8 t*t*((s+1)*t-s)},1H:e(t,s){9(s==P)s=1.B;8((t-=1)*t*((s+1)*t+s)+1)},1I:e(t,s){9(s==P)s=1.B;9((t*=2)<1)8.5*(t*t*(((s*=(1.Z))+1)*t-s));8.5*((t-=2)*t*(((s*=(1.Z))+1)*t+s)+2)},15:e(t){8 1-j.E.W(1-t)},W:e(t){9(t<(1/2.x)){8(7.N*t*t)}l 9(t<(2/2.x)){8(7.N*(t-=(1.5/2.x))*t+.x)}l 9(t<(2.5/2.x)){8(7.N*(t-=(2.1P/2.x))*t+.1Q)}l{8(7.N*(t-=(2.1R/2.x))*t+.1S)}},1T:e(t){9(t<.5)8 j.E.15(t*2)*.5;8 j.E.W(t*2-1)*.5+.5}};',62,119,'||||||this||return|if|||||function|Math|var|duration||Animation|currentTime|else|frames|PI|extra||scrub|begin|||pow|end|len|75|rate|length|step|70158|position|for|ease|typeof|null|animations|sin|playing|concat|apply|timeupdate|5625|sqrt|undefined|false|indexOf|loop|abs|asin|pause|bounceOut|lastInterval|prototype|525||break|splice|push|quadOut|bounceIn|new|arguments|def|cos|Array|addFrame|Date|quartInOut|quintIn|quintOut|quintInOut|sineIn|object|call|sineOut|removeFrame|sineInOut|expoIn|true|intervalId|expoOut|expoInOut|circIn|setInterval|circOut|circInOut|elasticIn|30|cubicOut|stop|play|swing|max|quadIn|elasticOut|elasticInOut|backIn|backOut|backInOut|quadInOut|min|cubicIn|slice|cubicInOut|quartIn|25|9375|625|984375|bounceInOut|quartOut'.split('|'),0,{}))