GSAP (GreenSock Animation Platform): high-performance JavaScript animation for anything JavaScript can touch. 100% free, including every plugin.
JavaScript animationcanvasgsapjavascriptjavascript-libraryreactscrollscrolltriggerspringsvgweb-animations
Fixed jquery.gsap.js fadeIn()/fadeOut() issue
GreenSock0b966695373d
diff --git a/src/minified/jquery.gsap.min.js b/src/minified/jquery.gsap.min.jsindex c2dbba7..7338eb3 100644--- a/src/minified/jquery.gsap.min.js+++ b/src/minified/jquery.gsap.min.js@@ -1,6 +1,6 @@/*!- * VERSION: 0.1.3- * DATE: 2013-01-25+ * VERSION: 0.1.4+ * DATE: 2013-01-28* JavaScript* UPDATES AND DOCS AT: http://www.greensock.com/jquery-gsap-plugin/*@@ -14,4 +14,4 @@** @author: Jack Doyle, [email protected]*/-(function(a){"use strict";var e,f,g,b=a.fn.animate,c=a.fn.stop,d=!0,h=function(a,b){"function"==typeof a&&this.each(a),b()},i=function(a,b,c,d,e){e="function"==typeof e?e:null,b="function"==typeof b?b:null,(b||e)&&(d[a]=e?h:c.each,d[a+"Scope"]=c,d[a+"Params"]=e?[b,e]:[b])},j={overwrite:1,delay:1,useFrames:1,runBackwards:1,easeParams:1,yoyo:1,immediateRender:1,repeat:1,repeatDelay:1,autoCSS:1},k=function(a,b){for(var c in j)j[c]&&void 0!==a[c]&&(b[c]=a[c])},l=function(a){return function(b){return a.getRatio(b)}},m={},n=function(){var c,d,b=window.GreenSockGlobals||window;if(e=b.TweenMax||b.TweenLite,f=b.CSSPlugin,e&&(c=(e.version+".0.0").split("."),d=!(Number(c[0])>0&&Number(c[1])>7)),!e||!f||d)return e=null,!g&&window.console&&(window.console.log("The jquery.gsap.js plugin requires the TweenMax (or at least TweenLite and CSSPlugin) JavaScript file(s)."+(d?" Version "+c.join(".")+" is too old.":"")),g=!0),void 0;if(m=b.Ease.map,m&&a.easing){for(var h in m)a.easing[h]=l(m[h]);n=!1}};a.fn.animate=function(c,g,h,j){if(c=c||{},n&&(n(),!e||!f))return b.call(this,c,g,h,j);if(!d||c.skipGSAP===!0||"object"==typeof g&&"function"==typeof g.step)return b.call(this,c,g,h,j);var r,s,t,u,v,l=a.speed(g,h,j),o={ease:m[l.easing]||(l.easing===!1?m.linear:m.swing)},p=this,q="object"==typeof g?g.specialEasing:null;for(t in c)s=c[t],s instanceof Array&&m[s[1]]&&(q=q||{},q[t]=s[1],s=s[0]),"toggle"===s||"hide"===s||"show"===s?(r=r||{},r[t]=s):o[-1===t.indexOf("-")?t:a.camelCase(t)]=s;if(q){v=[];for(t in q)s=v[v.length]={},k(o,s),s.ease=m[q[t]]||o.ease,-1!==t.indexOf("-")&&(t=a.camelCase(t)),s[t]=o[t];0===v.length&&(v=null)}return u=function(c){if(r&&b.call(p,r,{duration:l.duration,easing:l.easing,queue:!1}),v)for(var d=v.length;--d>-1;)e.to(p,a.fx.off?0:l.duration/1e3,v[d]);i("onComplete",l.old,p,o,c),e.to(p,a.fx.off?0:l.duration/1e3,o)},l.queue!==!1?p.queue(l.queue,u):u(),p},a.fn.stop=function(a,b){if(c.call(this,a,b),e){if(b)for(var g,d=e.getTweensOf(this),f=d.length;--f>-1;)g=d[f].totalTime()/d[f].totalDuration(),g>0&&1>g&&d[f].seek(d[f].totalDuration());e.killTweensOf(this)}return this},a.gsap={enabled:function(a){d=a},version:"0.1.3"}})(jQuery);\ No newline at end of file+(function(a){"use strict";var e,f,g,b=a.fn.animate,c=a.fn.stop,d=!0,h=function(a,b){"function"==typeof a&&this.each(a),b()},i=function(a,b,c,d,e){e="function"==typeof e?e:null,b="function"==typeof b?b:null,(b||e)&&(d[a]=e?h:c.each,d[a+"Scope"]=c,d[a+"Params"]=e?[b,e]:[b])},j={overwrite:1,delay:1,useFrames:1,runBackwards:1,easeParams:1,yoyo:1,immediateRender:1,repeat:1,repeatDelay:1,autoCSS:1},k=function(a,b){for(var c in j)j[c]&&void 0!==a[c]&&(b[c]=a[c])},l=function(a){return function(b){return a.getRatio(b)}},m={},n=function(){var c,d,b=window.GreenSockGlobals||window;if(e=b.TweenMax||b.TweenLite,f=b.CSSPlugin,e&&(c=(e.version+".0.0").split("."),d=!(Number(c[0])>0&&Number(c[1])>7)),!e||!f||d)return e=null,!g&&window.console&&(window.console.log("The jquery.gsap.js plugin requires the TweenMax (or at least TweenLite and CSSPlugin) JavaScript file(s)."+(d?" Version "+c.join(".")+" is too old.":"")),g=!0),void 0;if(m=b.Ease.map,m&&a.easing){for(var h in m)a.easing[h]=l(m[h]);n=!1}};a.fn.animate=function(c,g,h,j){if(c=c||{},n&&(n(),!e||!f))return b.call(this,c,g,h,j);if(!d||c.skipGSAP===!0||"object"==typeof g&&"function"==typeof g.step)return b.call(this,c,g,h,j);var r,s,t,u,l=a.speed(g,h,j),o={ease:m[l.easing]||(l.easing===!1?m.linear:m.swing)},p=this,q="object"==typeof g?g.specialEasing:null;for(s in c){if(r=c[s],r instanceof Array&&m[r[1]]&&(q=q||{},q[s]=r[1],r=r[0]),"toggle"===r||"hide"===r||"show"===r)return b.call(this,c,g,h,j);o[-1===s.indexOf("-")?s:a.camelCase(s)]=r}if(q){u=[];for(s in q)r=u[u.length]={},k(o,r),r.ease=m[q[s]]||o.ease,-1!==s.indexOf("-")&&(s=a.camelCase(s)),r[s]=o[s];0===u.length&&(u=null)}return t=function(b){if(u)for(var c=u.length;--c>-1;)e.to(p,a.fx.off?0:l.duration/1e3,u[c]);i("onComplete",l.old,p,o,b),e.to(p,a.fx.off?0:l.duration/1e3,o)},l.queue!==!1?p.queue(l.queue,t):t(),p},a.fn.stop=function(a,b){if(c.call(this,a,b),e){if(b)for(var g,d=e.getTweensOf(this),f=d.length;--f>-1;)g=d[f].totalTime()/d[f].totalDuration(),g>0&&1>g&&d[f].seek(d[f].totalDuration());e.killTweensOf(this)}return this},a.gsap={enabled:function(a){d=a},version:"0.1.4"}})(jQuery);\ No newline at end of filediff --git a/src/uncompressed/jquery.gsap.js b/src/uncompressed/jquery.gsap.jsindex e4dc5fb..fc47b97 100644--- a/src/uncompressed/jquery.gsap.js+++ b/src/uncompressed/jquery.gsap.js@@ -1,6 +1,6 @@/*!- * VERSION: 0.1.3- * DATE: 2013-01-25+ * VERSION: 0.1.4+ * DATE: 2013-01-28* JavaScript* UPDATES AND DOCS AT: http://www.greensock.com/jquery-gsap-plugin/*@@ -92,7 +92,7 @@vars = {ease:(_easeMap[config.easing] || ((config.easing === false) ? _easeMap.linear : _easeMap.swing))},obj = this,specEasing = (typeof(speed) === "object") ? speed.specialEasing : null,- fallbackProps, val, p, doAnimation, specEasingVars;+ val, p, doAnimation, specEasingVars;for (p in prop) {val = prop[p];@@ -102,8 +102,7 @@val = val[0];}if (val === "toggle" || val === "hide" || val === "show") {- fallbackProps = fallbackProps || {};- fallbackProps[p] = val;+ return _animate.call(this, prop, speed, easing, callback);} else {vars[(p.indexOf("-") === -1) ? p : $.camelCase(p)] = val;}@@ -126,9 +125,6 @@}doAnimation = function(next) {- if (fallbackProps) {- _animate.call(obj, fallbackProps, {duration:config.duration, easing:config.easing, queue:false});- }if (specEasingVars) {var i = specEasingVars.length;while (--i > -1) {@@ -168,6 +164,6 @@return this;};- $.gsap = {enabled:function(value) {_enabled = value;}, version:"0.1.3"};+ $.gsap = {enabled:function(value) {_enabled = value;}, version:"0.1.4"};}(jQuery));\ No newline at end of file