GSAP (GreenSock Animation Platform): high-performance JavaScript animation for anything JavaScript can touch. 100% free, including every plugin.
JavaScript animationcanvasgsapjavascriptjavascript-libraryreactscrollscrolltriggerspringsvgweb-animations
Fixed minor CSSPlugin bug with transformPerspective
Jack Doyle81a40f8190fb
diff --git a/src/minified/TweenMax.min.js b/src/minified/TweenMax.min.jsindex 88e0e7c..fb0b9c3 100755--- a/src/minified/TweenMax.min.js+++ b/src/minified/TweenMax.min.js@@ -1,18 +1,18 @@/**- * VERSION: beta 1.648- * DATE: 2012-11-23+ * VERSION: beta 1.65+ * DATE: 2012-11-30* JavaScript (ActionScript 3 and 2 also available)* UPDATES AND DOCS AT: http://www.greensock.com- *+ ** Includes all of the following: TweenLite, TweenMax, TimelineLite, TimelineMax, easing.EasePack, plugins.CSSPlugin, plugins.RoundPropsPlugin*- * Copyright (c) 2008-2012, GreenSock. All rights reserved.- * This work is subject to the terms in http://www.greensock.com/terms_of_use.html or for+ * Copyright (c) 2008-2012, GreenSock. All rights reserved.+ * This work is subject to the terms in http://www.greensock.com/terms_of_use.html or for* Club GreenSock members, the software agreement that was issued with your membership.- *+ ** @author: Jack Doyle, [email protected]**/-(window._gsQueue||(window._gsQueue=[])).push(function(){_gsDefine("TweenMax",["core.Animation","core.SimpleTimeline","TweenLite"],function(p,t,g){var n=function(E,c,e){g.call(this,E,c,e);this._cycle=0;this._yoyo=!0===this.vars.yoyo;this._repeat=this.vars.repeat||0;this._repeatDelay=this.vars.repeatDelay||0;this._dirty=!0},j=n.prototype=g.to({},0.1,{}),d=[];n.version=1.648;j.constructor=n;j.kill()._gc=!1;n.killTweensOf=n.killDelayedCallsTo=g.killTweensOf;n.getTweensOf=g.getTweensOf;n.ticker=g.ticker;+(window._gsQueue||(window._gsQueue=[])).push(function(){_gsDefine("TweenMax",["core.Animation","core.SimpleTimeline","TweenLite"],function(p,t,g){var n=function(E,c,e){g.call(this,E,c,e);this._cycle=0;this._yoyo=!0===this.vars.yoyo;this._repeat=this.vars.repeat||0;this._repeatDelay=this.vars.repeatDelay||0;this._dirty=!0},j=n.prototype=g.to({},0.1,{}),d=[];n.version=1.65;j.constructor=n;j.kill()._gc=!1;n.killTweensOf=n.killDelayedCallsTo=g.killTweensOf;n.getTweensOf=g.getTweensOf;n.ticker=g.ticker;j.invalidate=function(){this._yoyo=!0===this.vars.yoyo;this._repeat=this.vars.repeat||0;this._repeatDelay=this.vars.repeatDelay||0;this._uncache(!0);return g.prototype.invalidate.call(this)};j.updateTo=function(E,c){var e=this.ratio,a;c&&(null!=this.timeline&&this._startTime<this._timeline._time)&&(this._startTime=this._timeline._time,this._uncache(!1),this._gc?this._enabled(!0,!1):this._timeline.insert(this,this._startTime-this._delay));for(a in E)this.vars[a]=E[a];if(this._initted)if(c)this._initted=!1;else if(this._notifyPluginsOfEnabled&&this._firstPT&&g._onPluginEvent("_onDisable",this),0.998<this._time/this._duration)e=this._time,this.render(0,!0,!1),this._initted=!1,this.render(e,!0,!1);else if(0<this._time){this._initted=!1;this._init();e=1/(1-e);a=this._firstPT;for(var H;a;)H=a.s+a.c,a.c*=e,a.s=H-a.c,a=a._next}return this};j.render=function(a,c,e){var i=!this._dirty?this._totalDuration:this.totalDuration(),H=this._time,b=this._totalTime,v=this._cycle,h,x;if(a>=i){if(this._totalTime=i,this._cycle=this._repeat,this._yoyo&&0!==(this._cycle&1)?(this._time=0,this.ratio=this._ease._calcEnd?this._ease.getRatio(0):0):(this._time=this._duration,this.ratio=this._ease._calcEnd?this._ease.getRatio(1):1),this._reversed||(h=!0,x="onComplete"),0===this._duration){if(0===a||0>this._rawPrevTime)this._rawPrevTime!==a&&(e=!0);this._rawPrevTime=a}}else if(0>=a){this._totalTime=this._time=this._cycle=0;this.ratio=this._ease._calcEnd?this._ease.getRatio(0):0;if(0!==b||0===this._duration&&0<this._rawPrevTime)x=@@ -72,8 +72,8 @@ this._segments[0];this._s2=this._curSeg[0];this._prec=1/this._curSeg.length}if(dh<c-1){for(c-=1;h<c&&(this._l2=g[++h])<=a;);this._l1=g[h-1];this._li=h;this._curSeg=q=this._segments[h];this._s2=q[this._s1=this._si=0]}else if(a<this._l1&&0<h){for(;0<h&&(this._l1=g[--h])>=a;);0===h&&a<this._l1?this._l1=0:h++;this._l2=g[h];this._li=h;this._curSeg=q=this._segments[h];this._s1=q[(this._si=q.length-1)-1]||0;this._s2=q[this._si]}g=h;a-=this._l1;h=this._si;if(a>this._s2&&h<q.length-1){for(c=q.length-1;h<c&&(this._s2=q[++h])<=a;);this._s1=q[h-1];this._si=h}else if(a<this._s1&&0<h){for(;0<h&&(this._s1=q[--h])>=a;);0===h&&a<this._s1?this._s1=0:h++;this._s2=q[h];this._si=h}q=(h+(a-this._s1)/(this._s2-this._s1))*this._prec}else g=0>a?0:1<=a?c-1:c*a>>0,q=(a-g*(1/c))*c;c=1-q;for(h=this._props.length;-1<--h;)if(a=this._props[h],j=this._beziers[a][g],p=(q*q*j.da+3*c*(q*j.ca+c*j.ba))*q+j.a,this._round[a]&&(p=p+(0<p?0.5:-0.5)>>0),b[a])d[a](p);else d[a]=p;if(this._autoRotate){var c=this._autoRotate,s,t,v,E,y;for(h=c.length;-1<--h;)a=c[h][2],E=c[h][3]||0,y=!0===c[h][4]?1:n,j=this._beziers[c[h][0]][g],p=this._beziers[c[h][1]][g],s=j.a+(j.b-j.a)*q,t=j.b+(j.c-j.b)*q,s+=(t-s)*q,t+=(j.c+(j.d-j.c)*q-t)*q,j=p.a+(p.b-p.a)*q,v=p.b+(p.c-p.b)*q,j+=(v-j)*q,v+=(p.c+(p.d-p.c)*q-v)*q,p=Math.atan2(v-j,t-s)*y+E,b[a]?b[a].call(d,p):d[a]=p}};g._roundProps=function(a,c){for(var b=this._overwriteProps,d=b.length;-1<--d;)if(a[b[d]]||a.bezier||a.bezierThrough)this._round[b[d]]=c};g._kill=function(a){var c=this._props,b,d;for(b in this._beziers)if(b in a){delete this._beziers[b];delete this._func[b];for(d=c.length;-1<---d;)c[d]===b&&c.splice(d,1)}return p.prototype._kill.call(this,a)};p.activate([t]);return t},!0);_gsDefine("plugins.CSSPlugin",["plugins.TweenPlugin","TweenLite"],function(p){var t=function(){p.call(this,"css");this._overwriteProps.length=0},g,n,j,d,v={},b=t.prototype=new p("css");b.constructor=t;t.version=1.648;t.API=2;t.defaultTransformPerspective=0;b="px";t.suffixMap={top:b,right:b,bottom:b,left:b,width:b,height:b,fontSize:b,padding:b,margin:b,perspective:b};var a=/(?:\d|\-\d|\.\d|\-\.\d)+/g,-E=/(?:\d|\-\d|\.\d|\-\.\d|\+=\d|\-=\d|\+=.\d|\-=\.\d)+/g,c=/(?:\+=|\-=|\-|\b)[\d\-\.]+[a-zA-Z0-9]*(?:%|\b)/gi,e=/[^\d\-\.]/g,i=/(?:\d|\-|\+|=|#|\.)*/g,H=/opacity *= *([^)]*)/,X=/opacity:([^;]*)/,F=/([A-Z])/g,h=/-([a-z])/gi,x=function(a,$){return $.toUpperCase()},q=/(?:Left|Right|Width)/i,B=/(M11|M12|M21|M22)=[\d\-\.e]+/gi,s=/progid\:DXImageTransform\.Microsoft\.Matrix\(.+?\)/i,O=Math.PI/180,I=180/Math.PI,D={},y=document,k=y.createElement("div"),A=t._internals={_specialProps:v},r=navigator.userAgent,+--d;)c[d]===b&&c.splice(d,1)}return p.prototype._kill.call(this,a)};p.activate([t]);return t},!0);_gsDefine("plugins.CSSPlugin",["plugins.TweenPlugin","TweenLite"],function(p){var t=function(){p.call(this,"css");this._overwriteProps.length=0},g,n,j,d,v={},b=t.prototype=new p("css");b.constructor=t;t.version=1.65;t.API=2;t.defaultTransformPerspective=0;b="px";t.suffixMap={top:b,right:b,bottom:b,left:b,width:b,height:b,fontSize:b,padding:b,margin:b,perspective:b};var a=/(?:\d|\-\d|\.\d|\-\.\d)+/g,E=+/(?:\d|\-\d|\.\d|\-\.\d|\+=\d|\-=\d|\+=.\d|\-=\.\d)+/g,c=/(?:\+=|\-=|\-|\b)[\d\-\.]+[a-zA-Z0-9]*(?:%|\b)/gi,e=/[^\d\-\.]/g,i=/(?:\d|\-|\+|=|#|\.)*/g,H=/opacity *= *([^)]*)/,X=/opacity:([^;]*)/,F=/([A-Z])/g,h=/-([a-z])/gi,x=function(a,$){return $.toUpperCase()},q=/(?:Left|Right|Width)/i,B=/(M11|M12|M21|M22)=[\d\-\.e]+/gi,s=/progid\:DXImageTransform\.Microsoft\.Matrix\(.+?\)/i,O=Math.PI/180,I=180/Math.PI,D={},y=document,k=y.createElement("div"),A=t._internals={_specialProps:v},r=navigator.userAgent,C,u,P,L,f,l,m=r.indexOf("Android"),G=y.createElement("div");L=(P=-1!==r.indexOf("Safari")&&-1===r.indexOf("Chrome")&&(-1===m||3<Number(r.substr(m+8,1))))&&6>Number(r.substr(r.indexOf("Version/")+8,1));/MSIE ([0-9]{1,}[\.0-9]{0,})/.exec(r);f=parseFloat(RegExp.$1);G.innerHTML="<a style='top:1px;opacity:.55;'>a</a>";l=(r=G.getElementsByTagName("a")[0])?/^0.55/.test(r.style.opacity):!1;var w=function(a){return H.test("string"===typeof a?a:(a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?parseFloat(RegExp.$1)/100:1},J="",ea="",S=function(a,$){var $=$||k,f=$.style,c,b;if(void 0!==f[a])return a;a=a.charAt(0).toUpperCase()+a.substr(1);c=["O","Moz","ms","Ms","Webkit"];for(b=5;-1<--b&&void 0===f[c[b]+a];);return 0<=b?(ea=3===b?"ms":c[b],J="-"+ea.toLowerCase()+"-",ea+a):null},ba=y.defaultView?y.defaultView.getComputedStyle:function(){},M=t.getStyle=function(a,f,c,b,d){var m;if(!l&&"opacity"===f)return w(a);!b&&a.style[f]?m=a.style[f]:(c=c||ba(a,null))?m=(a=c.getPropertyValue(f.replace(F,"-$1").toLowerCase()))||c.length?a:c[f]:a.currentStyle&&(c=a.currentStyle,m=c[f],!m&&"backgroundPosition"===f&&(m=c[f+"X"]+" "+c[f+"Y"]));return null!=d&&(!m||"none"===m||"auto"===m||"auto auto"===m)?d:m},ca=function(a,f,c){var b={},d=a._gsOverwrittenClassNamePT,m;if(d&&!c){for(;d;)d.setRatio(0),d=d._next;a._gsOverwrittenClassNamePT=null}if(f=f||ba(a,null))if(m=f.length)for(;-1<--m;)b[f[m].replace(h,x)]=f.getPropertyValue(f[m]);else for(m in f)b[m]=f[m];else if(f=a.currentStyle||a.style)for(m in f)b[m.replace(h,x)]=f[m];@@ -105,11 +105,11 @@ k+=a.x;g+=a.y;n+=a.z;1E-6>n&&-1E-6<n&&(n=0);this.t.style[R]="matrix3d("+(1E-6>b&!a.skewX)this.t.style[R]="matrix("+a.scaleX+",0,0,"+a.scaleY+","+a.x+","+a.y+")";else{var f=a.rotation,b=f-a.skewX,c=Math.cos(f)*a.scaleX,f=Math.sin(f)*a.scaleX,d=Math.sin(b)*-a.scaleY,b=Math.cos(b)*a.scaleY;this.t.style[R]="matrix("+(1E-6>c&&-1E-6<c?0:c)+","+(1E-6>f&&-1E-6<f?0:f)+","+(1E-6>d&&-1E-6<d?0:d)+","+(1E-6>b&&-1E-6<b?0:b)+","+a.x+","+a.y+")"}};K("transform,scale,scaleX,scaleY,scaleZ,x,y,z,rotation,rotationX,rotationY,rotationZ,skewX,skewY,shortRotation,shortRotationX,shortRotationY,shortRotationZ,transformOrigin,transformPerspective",null,function(a,f,b,c,m,k,l){if(c._transform)return m;var f=c._transform=fa(a,j,!0),e=a.style,g=oa.length,i,h,n,w;if("string"===typeof l.transform&&R)h=e[R],e[R]=l.transform,i=fa(a,null,!1),e[R]=h;else if("object"===typeof l){h=null!=l.rotation?l.rotation:null!=l.rotationZ?l.rotationZ:f.rotation*I;i={scaleX:U(null!=l.scaleX?l.scaleX:l.scale,f.scaleX),scaleY:U(null!=l.scaleY?l.scaleY:l.scale,f.scaleY),scaleZ:U(null!=l.scaleZ?l.scaleZ:l.scale,f.scaleZ),x:U(l.x,f.x),y:U(l.y,f.y),z:U(l.z,f.z),perspective:U(l.transformPerspective,f.perspective)};i.rotation=null!=l.shortRotation||null!=l.shortRotationZ?ia(l.shortRotation||l.shortRotationZ||0,f.rotation):"number"===typeof h?h*O:Y(h,f.rotation);W&&(i.rotationX=null!=l.shortRotationX?ia(l.shortRotationX,f.rotationX):"number"===typeof l.rotationX?l.rotationX*O:Y(l.rotationX,f.rotationX),i.rotationY=null!=l.shortRotationY?ia(l.shortRotationY,f.rotationY):"number"===typeof l.rotationY?l.rotationY*O:Y(l.rotationY,f.rotationY),1E-6>i.rotationX&&-1E-6<i.rotationX&&(i.rotationX=0),1E-6>-i.rotationY&&-1E-6<i.rotationY&&(i.rotationY=0));i.skewX=null==l.skewX?f.skewX:"number"===typeof l.skewX?l.skewX*O:Y(l.skewX,f.skewX);i.skewY=null==l.skewY?f.skewY:"number"===typeof l.skewY?l.skewY*O:Y(l.skewY,f.skewY);if(h=i.skewY-f.skewY)i.skewX+=h,i.rotation+=h;1E-6>i.skewY&&-1E-6<i.skewY&&(i.skewY=0);1E-6>i.skewX&&-1E-6<i.skewX&&(i.skewX=0);1E-6>i.rotation&&-1E-6<i.rotation&&(i.rotation=0)}w=f.z||f.rotationX||f.rotationY||i.z||i.rotationX||i.rotationY;!w&&null!=i.scale&&(i.scaleZ=1);if(R){if(P){u=-!0;if(""===e.zIndex&&(h=M(a,"zIndex",j),"auto"===h||""===h))e.zIndex=0;L&&(e.WebkitBackfaceVisibility=l.WebkitBackfaceVisibility||(w?"visible":"hidden"))}}else e.zoom=1;m=new N(a,"transform",0,0,m,2);m.setRatio=w&&W?ua:R?va:ta;m.plugin=k;m.data=f;for(d.pop();-1<--g;)if(b=oa[g],n=i[b]-f[b],1E-6<n||-1E-6>n||null!=D[b])m=new N(f,b,f[b],n,m),m.xs0=0,m.plugin=k,c._overwriteProps.push(m.n);if((n=l.transformOrigin)||W&&w&&f.zOrigin)R?(n=(n||M(a,b,j,!1,"50% 50%"))+"",b=pa,m=new N(e,b,0,0,m,-1,"css_transformOrigin"),-m.b=e[b],m.plugin=k,W?(h=f.zOrigin,n=n.split(" "),f.zOrigin=(2<n.length?parseFloat(n[2]):h)||0,m.xs0=m.e=e[b]=n[0]+" "+(n[1]||"50%")+" 0px",m=new N(f,"zOrigin",0,0,m,-1,m.n),m.b=h,m.xs0=m.e=f.zOrigin):m.xs0=m.e=e[b]=n):ha(n+"",f);return m.t===a?(m._next&&(m._next._prev=null),m._next):m},!0);K("boxShadow","0px 0px 0px 0px #999",null,!0,!0);K("borderRadius","0px",function(a,f,b,c,d){var f=this.format(f),c=["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"],-l=a.style,m,k,e,g,i,h,w,G,p,r,q,s;G=parseFloat(a.offsetWidth);p=parseFloat(a.offsetHeight);f=f.split(" ");for(m=0;m<c.length;m++)this.p.indexOf("border")&&(c[m]=S(c[m])),g=e=M(a,c[m],j,!1,"0px"),i=k=f[m],h=parseFloat(g),q=g.substr((h+"").length),(s="="===i.charAt(1))?(w=parseInt(i.charAt(0)+"1"),i=i.substr(2),w*=parseFloat(i),r=i.substr((w+"").length-(0>w?1:0))||""):(w=parseFloat(i),r=i.substr((w+"").length)),""===r&&(r=n[b]||q),r!==q&&(g=T(a,"borderLeft",h,q),h=T(a,"borderTop",h,q),"%"===r?(g=100*-(g/G)+"%",e=100*(h/p)+"%"):"em"===r?(q=T(a,"borderLeft",1,"em"),g=g/q+"em",e=h/q+"em"):(g+="px",e=h+"px"),s&&(i=parseFloat(g)+w+r,k=parseFloat(e)+w+r)),d=da(l,c[m],g+" "+e,i+" "+k,!1,"0px",d);return d},!0,!1,ma("0px 0px 0px 0px",!1,!0));K("backgroundPosition","0 0",null,!1,!1,ha);K("backgroundSize","0 0",null,!1,!1,ha);K("perspective","0px",null,!0);K("perspectiveOrigin","50% 50%",null,!0);K("transformStyle","preserve-3d",null,!0);K("margin",null,r("marginTop,marginRight,marginBottom,marginLeft"));+i.rotationY&&-1E-6<i.rotationY&&(i.rotationY=0));i.skewX=null==l.skewX?f.skewX:"number"===typeof l.skewX?l.skewX*O:Y(l.skewX,f.skewX);i.skewY=null==l.skewY?f.skewY:"number"===typeof l.skewY?l.skewY*O:Y(l.skewY,f.skewY);if(h=i.skewY-f.skewY)i.skewX+=h,i.rotation+=h;1E-6>i.skewY&&-1E-6<i.skewY&&(i.skewY=0);1E-6>i.skewX&&-1E-6<i.skewX&&(i.skewX=0);1E-6>i.rotation&&-1E-6<i.rotation&&(i.rotation=0)}w=f.z||f.rotationX||f.rotationY||i.z||i.rotationX||i.rotationY||i.perspective;!w&&null!=i.scale&&(i.scaleZ=+1);if(R){if(P){u=!0;if(""===e.zIndex&&(h=M(a,"zIndex",j),"auto"===h||""===h))e.zIndex=0;L&&(e.WebkitBackfaceVisibility=l.WebkitBackfaceVisibility||(w?"visible":"hidden"))}}else e.zoom=1;m=new N(a,"transform",0,0,m,2);m.setRatio=w&&W?ua:R?va:ta;m.plugin=k;m.data=f;for(d.pop();-1<--g;)if(b=oa[g],n=i[b]-f[b],1E-6<n||-1E-6>n||null!=D[b])m=new N(f,b,f[b],n,m),m.xs0=0,m.plugin=k,c._overwriteProps.push(m.n);if((n=l.transformOrigin)||W&&w&&f.zOrigin)R?(n=(n||M(a,b,j,!1,"50% 50%"))+"",b=pa,m=new N(e,b,0,0,+m,-1,"css_transformOrigin"),m.b=e[b],m.plugin=k,W?(h=f.zOrigin,n=n.split(" "),f.zOrigin=(2<n.length?parseFloat(n[2]):h)||0,m.xs0=m.e=e[b]=n[0]+" "+(n[1]||"50%")+" 0px",m=new N(f,"zOrigin",0,0,m,-1,m.n),m.b=h,m.xs0=m.e=f.zOrigin):m.xs0=m.e=e[b]=n):ha(n+"",f);return m.t===a?(m._next&&(m._next._prev=null),m._next):m},!0);K("boxShadow","0px 0px 0px 0px #999",null,!0,!0);K("borderRadius","0px",function(a,f,b,c,d){var f=this.format(f),c=["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius",+"borderBottomLeftRadius"],l=a.style,m,k,e,g,i,h,w,G,p,r,q,s;G=parseFloat(a.offsetWidth);p=parseFloat(a.offsetHeight);f=f.split(" ");for(m=0;m<c.length;m++)this.p.indexOf("border")&&(c[m]=S(c[m])),g=e=M(a,c[m],j,!1,"0px"),i=k=f[m],h=parseFloat(g),q=g.substr((h+"").length),(s="="===i.charAt(1))?(w=parseInt(i.charAt(0)+"1"),i=i.substr(2),w*=parseFloat(i),r=i.substr((w+"").length-(0>w?1:0))||""):(w=parseFloat(i),r=i.substr((w+"").length)),""===r&&(r=n[b]||q),r!==q&&(g=T(a,"borderLeft",h,q),h=T(a,"borderTop",+h,q),"%"===r?(g=100*(g/G)+"%",e=100*(h/p)+"%"):"em"===r?(q=T(a,"borderLeft",1,"em"),g=g/q+"em",e=h/q+"em"):(g+="px",e=h+"px"),s&&(i=parseFloat(g)+w+r,k=parseFloat(e)+w+r)),d=da(l,c[m],g+" "+e,i+" "+k,!1,"0px",d);return d},!0,!1,ma("0px 0px 0px 0px",!1,!0));K("backgroundPosition","0 0",null,!1,!1,ha);K("backgroundSize","0 0",null,!1,!1,ha);K("perspective","0px",null,!0);K("perspectiveOrigin","50% 50%",null,!0);K("transformStyle","preserve-3d",null,!0);K("margin",null,r("marginTop,marginRight,marginBottom,marginLeft"));K("padding",null,r("paddingTop,paddingRight,paddingBottom,paddingLeft"));K("clip","rect(0px,0px,0px,0px)");K("textShadow","0px 0px 0px #999",null,!1,!0);K("autoRound",null,function(a,f,b,c,d){return d});K("border","0px solid #000",function(a,f,b,c,d,l){return this.parseComplex(a.style,this.format(M(a,"borderTopWidth",j,!1,"0px")+" "+M(a,"borderTopStyle",j,!1,"solid")+" "+M(a,"borderTopColor",j,!1,"#000")),this.format(f),d,l)},!1,!0,function(a){var f=a.split(" ");return f[0]+" "+(f[1]||"solid")+" "+(a.match(V)||["#000"])[0]});var wa=function(a){var f=this.t,a=this.s+this.c*a,b;100===a&&(f.removeAttribute("filter"),b=!M(this.data,"filter"));b||(this.xn1&&(f.filter=f.filter||"alpha(opacity=100)"),f.filter=-1===f.filter.indexOf("opacity")?f.filter+(" alpha(opacity="+(a>>0)+")"):f.filter.replace(H,"opacity="+(a>>0)))};K("opacity,alpha,autoAlpha","1",function(a,f,b,c,d,m){var k=parseFloat(M(a,"opacity",j,!1,"1")),f=parseFloat(f),e=a.style,g;"autoAlpha"===b&&(g=M(a,"visibility",j),1===k&&"hidden"===g&&(k=0),d=new N(e,"visibility",0,0,d,-1,null,!1,0,0!==k?"visible":"hidden",0===f?"hidden":"visible"),d.xs0="visible",c._overwriteProps.push(d.n));l?d=new N(e,"opacity",k,f-k,d):(d=new N(e,"opacity",100*k,100*(f-k),d),d.xn1="autoAlpha"===b?1:0,e.zoom=1,d.type=2,d.b="alpha(opacity="+d.s+")",d.e="alpha(opacity="+(d.s+d.c)+")",d.data=a,d.plugin=m,d.setRatio=wa);return d});var xa=function(a){if(1===a||0===a){this.t.className=1===a?this.e:this.b;for(var a=this.data,f=this.t.style,b=f.removeProperty?"removeProperty":diff --git a/src/minified/plugins/CSSPlugin.min.js b/src/minified/plugins/CSSPlugin.min.jsindex 7ba73f1..423f99e 100755--- a/src/minified/plugins/CSSPlugin.min.js+++ b/src/minified/plugins/CSSPlugin.min.js@@ -1,6 +1,6 @@/*!- * VERSION: beta 1.648- * DATE: 2012-11-23+ * VERSION: beta 1.65+ * DATE: 2012-11-30* JavaScript* UPDATES AND DOCS AT: http://www.greensock.com*@@ -10,7 +10,7 @@** @author: Jack Doyle, [email protected]*/-(window._gsQueue||(window._gsQueue=[])).push(function(){_gsDefine("plugins.CSSPlugin",["plugins.TweenPlugin","TweenLite"],function(R){var w=function(){R.call(this,"css");this._overwriteProps.length=0},X,Y,s,Z,J={},l=w.prototype=new R("css");l.constructor=w;w.version=1.648;w.API=2;w.defaultTransformPerspective=0;l="px";w.suffixMap={top:l,right:l,bottom:l,left:l,width:l,height:l,fontSize:l,padding:l,margin:l,perspective:l};var $=/(?:\d|\-\d|\.\d|\-\.\d)+/g,ja=/(?:\d|\-\d|\.\d|\-\.\d|\+=\d|\-=\d|\+=.\d|\-=\.\d)+/g,+(window._gsQueue||(window._gsQueue=[])).push(function(){_gsDefine("plugins.CSSPlugin",["plugins.TweenPlugin","TweenLite"],function(R){var w=function(){R.call(this,"css");this._overwriteProps.length=0},X,Y,s,Z,J={},l=w.prototype=new R("css");l.constructor=w;w.version=1.65;w.API=2;w.defaultTransformPerspective=0;l="px";w.suffixMap={top:l,right:l,bottom:l,left:l,width:l,height:l,fontSize:l,padding:l,margin:l,perspective:l};var $=/(?:\d|\-\d|\.\d|\-\.\d)+/g,ja=/(?:\d|\-\d|\.\d|\-\.\d|\+=\d|\-=\d|\+=.\d|\-=\.\d)+/g,aa=/(?:\+=|\-=|\-|\b)[\d\-\.]+[a-zA-Z0-9]*(?:%|\b)/gi,S=/[^\d\-\.]/g,Ba=/(?:\d|\-|\+|=|#|\.)*/g,ba=/opacity *= *([^)]*)/,Ca=/opacity:([^;]*)/,ka=/([A-Z])/g,la=/-([a-z])/gi,ma=function(a,b){return b.toUpperCase()},Da=/(?:Left|Right|Width)/i,Ea=/(M11|M12|M21|M22)=[\d\-\.e]+/gi,Fa=/progid\:DXImageTransform\.Microsoft\.Matrix\(.+?\)/i,E=Math.PI/180,N=180/Math.PI,T={},O=document,P=O.createElement("div"),F=w._internals={_specialProps:J},x=navigator.userAgent,ca,na,oa,pa,qa,K,ra=x.indexOf("Android"),sa=O.createElement("div");pa=(oa=-1!==x.indexOf("Safari")&&-1===x.indexOf("Chrome")&&(-1===ra||3<Number(x.substr(ra+8,1))))&&6>Number(x.substr(x.indexOf("Version/")+8,1));/MSIE ([0-9]{1,}[\.0-9]{0,})/.exec(x);qa=parseFloat(RegExp.$1);sa.innerHTML="<a style='top:1px;opacity:.55;'>a</a>";K=(x=sa.getElementsByTagName("a")[0])?/^0.55/.test(x.style.opacity):!1;var ta=function(a){return ba.test("string"===typeof a?a:(a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?parseFloat(RegExp.$1)/100:1},ua="",da="",Q=function(a,b){var b=b||P,e=b.style,c,f;if(void 0!==e[a])return a;a=a.charAt(0).toUpperCase()+a.substr(1);c=["O","Moz","ms","Ms","Webkit"];for(f=5;-1<--f&&void 0===e[c[f]+a];);return 0<=f?(da=3===f?"ms":c[f],ua="-"+da.toLowerCase()+"-",da+a):null},U=O.defaultView?O.defaultView.getComputedStyle:function(){},v=w.getStyle=function(a,b,e,c,f){var i;if(!K&&"opacity"===b)return ta(a);!c&&a.style[b]?i=a.style[b]:(e=e||U(a,null))?i=(a=e.getPropertyValue(b.replace(ka,"-$1").toLowerCase()))||e.length?@@ -43,11 +43,11 @@ i+=a.x;h+=a.y;l+=a.z;1E-6>l&&-1E-6<l&&(l=0);this.t.style[C]="matrix3d("+(1E-6>e&!a.skewX)this.t.style[C]="matrix("+a.scaleX+",0,0,"+a.scaleY+","+a.x+","+a.y+")";else{var b=a.rotation,e=b-a.skewX,c=Math.cos(b)*a.scaleX,b=Math.sin(b)*a.scaleX,f=Math.sin(e)*-a.scaleY,e=Math.cos(e)*a.scaleY;this.t.style[C]="matrix("+(1E-6>c&&-1E-6<c?0:c)+","+(1E-6>b&&-1E-6<b?0:b)+","+(1E-6>f&&-1E-6<f?0:f)+","+(1E-6>e&&-1E-6<e?0:e)+","+a.x+","+a.y+")"}};p("transform,scale,scaleX,scaleY,scaleZ,x,y,z,rotation,rotationX,rotationY,rotationZ,skewX,skewY,shortRotation,shortRotationX,shortRotationY,shortRotationZ,transformOrigin,transformPerspective",null,function(a,b,e,c,f,i,d){if(c._transform)return f;var b=c._transform=ea(a,s,!0),g=a.style,j=za.length,h,k,m,n;if("string"===typeof d.transform&&C)k=g[C],g[C]=d.transform,h=ea(a,null,!1),g[C]=k;else if("object"===typeof d){k=null!=d.rotation?d.rotation:null!=d.rotationZ?d.rotationZ:b.rotation*N;h={scaleX:G(null!=d.scaleX?d.scaleX:d.scale,b.scaleX),scaleY:G(null!=d.scaleY?d.scaleY:d.scale,b.scaleY),scaleZ:G(null!=d.scaleZ?d.scaleZ:d.scale,b.scaleZ),x:G(d.x,b.x),y:G(d.y,b.y),z:G(d.z,b.z),perspective:G(d.transformPerspective,b.perspective)};h.rotation=null!=d.shortRotation||null!=d.shortRotationZ?ha(d.shortRotation||d.shortRotationZ||0,b.rotation):"number"===typeof k?k*E:L(k,b.rotation);I&&(h.rotationX=null!=d.shortRotationX?ha(d.shortRotationX,b.rotationX):"number"===typeof d.rotationX?d.rotationX*E:L(d.rotationX,b.rotationX),h.rotationY=null!=d.shortRotationY?ha(d.shortRotationY,b.rotationY):"number"===typeof d.rotationY?d.rotationY*E:L(d.rotationY,b.rotationY),1E-6>h.rotationX&&-1E-6<h.rotationX&&(h.rotationX=0),1E-6>-h.rotationY&&-1E-6<h.rotationY&&(h.rotationY=0));h.skewX=null==d.skewX?b.skewX:"number"===typeof d.skewX?d.skewX*E:L(d.skewX,b.skewX);h.skewY=null==d.skewY?b.skewY:"number"===typeof d.skewY?d.skewY*E:L(d.skewY,b.skewY);if(k=h.skewY-b.skewY)h.skewX+=k,h.rotation+=k;1E-6>h.skewY&&-1E-6<h.skewY&&(h.skewY=0);1E-6>h.skewX&&-1E-6<h.skewX&&(h.skewX=0);1E-6>h.rotation&&-1E-6<h.rotation&&(h.rotation=0)}n=b.z||b.rotationX||b.rotationY||h.z||h.rotationX||h.rotationY;!n&&null!=h.scale&&(h.scaleZ=1);if(C){if(oa){na=-!0;if(""===g.zIndex&&(k=v(a,"zIndex",s),"auto"===k||""===k))g.zIndex=0;pa&&(g.WebkitBackfaceVisibility=d.WebkitBackfaceVisibility||(n?"visible":"hidden"))}}else g.zoom=1;f=new q(a,"transform",0,0,f,2);f.setRatio=n&&I?La:C?Ma:Ka;f.plugin=i;f.data=b;for(Z.pop();-1<--j;)if(e=za[j],m=h[e]-b[e],1E-6<m||-1E-6>m||null!=T[e])f=new q(b,e,b[e],m,f),f.xs0=0,f.plugin=i,c._overwriteProps.push(f.n);if((m=d.transformOrigin)||I&&n&&b.zOrigin)C?(m=(m||v(a,e,s,!1,"50% 50%"))+"",e=Aa,f=new q(g,e,0,0,f,-1,"css_transformOrigin"),-f.b=g[e],f.plugin=i,I?(k=b.zOrigin,m=m.split(" "),b.zOrigin=(2<m.length?parseFloat(m[2]):k)||0,f.xs0=f.e=g[e]=m[0]+" "+(m[1]||"50%")+" 0px",f=new q(b,"zOrigin",0,0,f,-1,f.n),f.b=k,f.xs0=f.e=b.zOrigin):f.xs0=f.e=g[e]=m):ga(m+"",b);return f.t===a?(f._next&&(f._next._prev=null),f._next):f},!0);p("boxShadow","0px 0px 0px 0px #999",null,!0,!0);p("borderRadius","0px",function(a,b,e,c,f){var b=this.format(b),c=["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"],-i=a.style,d,g,j,h,k,m,n,l,q,p,t,r;l=parseFloat(a.offsetWidth);q=parseFloat(a.offsetHeight);b=b.split(" ");for(d=0;d<c.length;d++)this.p.indexOf("border")&&(c[d]=Q(c[d])),h=j=v(a,c[d],s,!1,"0px"),k=g=b[d],m=parseFloat(h),t=h.substr((m+"").length),(r="="===k.charAt(1))?(n=parseInt(k.charAt(0)+"1"),k=k.substr(2),n*=parseFloat(k),p=k.substr((n+"").length-(0>n?1:0))||""):(n=parseFloat(k),p=k.substr((n+"").length)),""===p&&(p=Y[e]||t),p!==t&&(h=D(a,"borderLeft",m,t),m=D(a,"borderTop",m,t),"%"===p?(h=100*-(h/l)+"%",j=100*(m/q)+"%"):"em"===p?(t=D(a,"borderLeft",1,"em"),h=h/t+"em",j=m/t+"em"):(h+="px",j=m+"px"),r&&(k=parseFloat(h)+n+p,g=parseFloat(j)+n+p)),f=W(i,c[d],h+" "+j,k+" "+g,!1,"0px",f);return f},!0,!1,xa("0px 0px 0px 0px",!1,!0));p("backgroundPosition","0 0",null,!1,!1,ga);p("backgroundSize","0 0",null,!1,!1,ga);p("perspective","0px",null,!0);p("perspectiveOrigin","50% 50%",null,!0);p("transformStyle","preserve-3d",null,!0);p("margin",null,x("marginTop,marginRight,marginBottom,marginLeft"));+h.rotationY&&-1E-6<h.rotationY&&(h.rotationY=0));h.skewX=null==d.skewX?b.skewX:"number"===typeof d.skewX?d.skewX*E:L(d.skewX,b.skewX);h.skewY=null==d.skewY?b.skewY:"number"===typeof d.skewY?d.skewY*E:L(d.skewY,b.skewY);if(k=h.skewY-b.skewY)h.skewX+=k,h.rotation+=k;1E-6>h.skewY&&-1E-6<h.skewY&&(h.skewY=0);1E-6>h.skewX&&-1E-6<h.skewX&&(h.skewX=0);1E-6>h.rotation&&-1E-6<h.rotation&&(h.rotation=0)}n=b.z||b.rotationX||b.rotationY||h.z||h.rotationX||h.rotationY||h.perspective;!n&&null!=h.scale&&(h.scaleZ=+1);if(C){if(oa){na=!0;if(""===g.zIndex&&(k=v(a,"zIndex",s),"auto"===k||""===k))g.zIndex=0;pa&&(g.WebkitBackfaceVisibility=d.WebkitBackfaceVisibility||(n?"visible":"hidden"))}}else g.zoom=1;f=new q(a,"transform",0,0,f,2);f.setRatio=n&&I?La:C?Ma:Ka;f.plugin=i;f.data=b;for(Z.pop();-1<--j;)if(e=za[j],m=h[e]-b[e],1E-6<m||-1E-6>m||null!=T[e])f=new q(b,e,b[e],m,f),f.xs0=0,f.plugin=i,c._overwriteProps.push(f.n);if((m=d.transformOrigin)||I&&n&&b.zOrigin)C?(m=(m||v(a,e,s,!1,"50% 50%"))+"",e=Aa,f=new q(g,e,+0,0,f,-1,"css_transformOrigin"),f.b=g[e],f.plugin=i,I?(k=b.zOrigin,m=m.split(" "),b.zOrigin=(2<m.length?parseFloat(m[2]):k)||0,f.xs0=f.e=g[e]=m[0]+" "+(m[1]||"50%")+" 0px",f=new q(b,"zOrigin",0,0,f,-1,f.n),f.b=k,f.xs0=f.e=b.zOrigin):f.xs0=f.e=g[e]=m):ga(m+"",b);return f.t===a?(f._next&&(f._next._prev=null),f._next):f},!0);p("boxShadow","0px 0px 0px 0px #999",null,!0,!0);p("borderRadius","0px",function(a,b,e,c,f){var b=this.format(b),c=["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius",+"borderBottomLeftRadius"],i=a.style,d,g,j,h,k,m,n,l,q,p,t,r;l=parseFloat(a.offsetWidth);q=parseFloat(a.offsetHeight);b=b.split(" ");for(d=0;d<c.length;d++)this.p.indexOf("border")&&(c[d]=Q(c[d])),h=j=v(a,c[d],s,!1,"0px"),k=g=b[d],m=parseFloat(h),t=h.substr((m+"").length),(r="="===k.charAt(1))?(n=parseInt(k.charAt(0)+"1"),k=k.substr(2),n*=parseFloat(k),p=k.substr((n+"").length-(0>n?1:0))||""):(n=parseFloat(k),p=k.substr((n+"").length)),""===p&&(p=Y[e]||t),p!==t&&(h=D(a,"borderLeft",m,t),m=D(a,"borderTop",+m,t),"%"===p?(h=100*(h/l)+"%",j=100*(m/q)+"%"):"em"===p?(t=D(a,"borderLeft",1,"em"),h=h/t+"em",j=m/t+"em"):(h+="px",j=m+"px"),r&&(k=parseFloat(h)+n+p,g=parseFloat(j)+n+p)),f=W(i,c[d],h+" "+j,k+" "+g,!1,"0px",f);return f},!0,!1,xa("0px 0px 0px 0px",!1,!0));p("backgroundPosition","0 0",null,!1,!1,ga);p("backgroundSize","0 0",null,!1,!1,ga);p("perspective","0px",null,!0);p("perspectiveOrigin","50% 50%",null,!0);p("transformStyle","preserve-3d",null,!0);p("margin",null,x("marginTop,marginRight,marginBottom,marginLeft"));p("padding",null,x("paddingTop,paddingRight,paddingBottom,paddingLeft"));p("clip","rect(0px,0px,0px,0px)");p("textShadow","0px 0px 0px #999",null,!1,!0);p("autoRound",null,function(a,b,e,c,f){return f});p("border","0px solid #000",function(a,b,e,c,f,i){return this.parseComplex(a.style,this.format(v(a,"borderTopWidth",s,!1,"0px")+" "+v(a,"borderTopStyle",s,!1,"solid")+" "+v(a,"borderTopColor",s,!1,"#000")),this.format(b),f,i)},!1,!0,function(a){var b=a.split(" ");return b[0]+" "+(b[1]||"solid")+" "+(a.match(H)||["#000"])[0]});var Na=function(a){var b=this.t,a=this.s+this.c*a,e;100===a&&(b.removeAttribute("filter"),e=!v(this.data,"filter"));e||(this.xn1&&(b.filter=b.filter||"alpha(opacity=100)"),b.filter=-1===b.filter.indexOf("opacity")?b.filter+(" alpha(opacity="+(a>>0)+")"):b.filter.replace(ba,"opacity="+(a>>0)))};p("opacity,alpha,autoAlpha","1",function(a,b,e,c,f,i){var d=parseFloat(v(a,"opacity",s,!1,"1")),b=parseFloat(b),g=a.style,j;"autoAlpha"===e&&(j=v(a,"visibility",s),1===d&&"hidden"===j&&(d=0),f=new q(g,"visibility",0,0,f,-1,null,!1,0,0!==d?"visible":"hidden",0===b?"hidden":"visible"),f.xs0="visible",c._overwriteProps.push(f.n));K?f=new q(g,"opacity",d,b-d,f):(f=new q(g,"opacity",100*d,100*(b-d),f),f.xn1="autoAlpha"===e?1:0,g.zoom=1,f.type=2,f.b="alpha(opacity="+f.s+")",f.e="alpha(opacity="+(f.s+f.c)+")",f.data=a,f.plugin=i,f.setRatio=Na);return f});var Oa=function(a){if(1===a||0===a){this.t.className=1===a?this.e:this.b;for(var a=this.data,b=this.t.style,e=b.removeProperty?"removeProperty":diff --git a/src/uncompressed/TweenMax.js b/src/uncompressed/TweenMax.jsindex 9e06071..e110923 100755--- a/src/uncompressed/TweenMax.js+++ b/src/uncompressed/TweenMax.js@@ -1,6 +1,6 @@/**- * VERSION: beta 1.648- * DATE: 2012-11-23+ * VERSION: beta 1.65+ * DATE: 2012-11-30* JavaScript (ActionScript 3 and 2 also available)* UPDATES AND DOCS AT: http://www.greensock.com*@@ -33,7 +33,7 @@p = TweenMax.prototype = TweenLite.to({}, 0.1, {}),_blankArray = [];- TweenMax.version = 1.648;+ TweenMax.version = 1.65;p.constructor = TweenMax;p.kill()._gc = false;TweenMax.killTweensOf = TweenMax.killDelayedCallsTo = TweenLite.killTweensOf;@@ -2064,7 +2064,7 @@p = CSSPlugin.prototype = new TweenPlugin("css");p.constructor = CSSPlugin;- CSSPlugin.version = 1.648;+ CSSPlugin.version = 1.65;CSSPlugin.API = 2;CSSPlugin.defaultTransformPerspective = 0;p = "px"; //we'll reuse the "p" variable to keep file size down@@ -3372,7 +3372,7 @@}}- has3D = (m1.z || m1.rotationX || m1.rotationY || m2.z || m2.rotationX || m2.rotationY);+ has3D = (m1.z || m1.rotationX || m1.rotationY || m2.z || m2.rotationX || m2.rotationY || m2.perspective);if (!has3D && m2.scale != null) {m2.scaleZ = 1; //no need to tween scaleZ.}diff --git a/src/uncompressed/plugins/CSSPlugin.js b/src/uncompressed/plugins/CSSPlugin.jsindex 7ab4cad..fedaacf 100755--- a/src/uncompressed/plugins/CSSPlugin.js+++ b/src/uncompressed/plugins/CSSPlugin.js@@ -1,6 +1,6 @@/*!- * VERSION: beta 1.648- * DATE: 2012-11-23+ * VERSION: beta 1.65+ * DATE: 2012-11-30* JavaScript* UPDATES AND DOCS AT: http://www.greensock.com*@@ -29,7 +29,7 @@p = CSSPlugin.prototype = new TweenPlugin("css");p.constructor = CSSPlugin;- CSSPlugin.version = 1.648;+ CSSPlugin.version = 1.65;CSSPlugin.API = 2;CSSPlugin.defaultTransformPerspective = 0;p = "px"; //we'll reuse the "p" variable to keep file size down@@ -1366,7 +1366,7 @@}}- has3D = (m1.z || m1.rotationX || m1.rotationY || m2.z || m2.rotationX || m2.rotationY);+ has3D = (m1.z || m1.rotationX || m1.rotationY || m2.z || m2.rotationX || m2.rotationY || m2.perspective);if (!has3D && m2.scale != null) {m2.scaleZ = 1; //no need to tween scaleZ.}