From 75532e6c9d8092356eadb6a4168797c680f3409b Mon Sep 17 00:00:00 2001 From: Craig Dennis Date: Tue, 27 May 2014 01:34:51 +0100 Subject: [PATCH 1/3] docs: update animation class and add bower information --- README.md | 12 ++++++++++-- dist/jquery.animatecss.js | 4 ++-- dist/jquery.animatecss.min.js | 4 ++-- 3 files changed, 14 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 504c02c..4ef8a83 100644 --- a/README.md +++ b/README.md @@ -6,6 +6,14 @@ A jQuery plugin to dynamically apply [Dan Eden's animate.css][animate.css] anima ## Getting Started +### Bower +Install with [Bower][bower] +`bower install animateCSS` + +[bower]: http://bower.io/ + +### Download + Download the [production version][min] or the [development version][max]. [min]: https://raw.github.com/craigmdennis/animateCSS/master/dist/jquery.animatecss.min.js @@ -28,7 +36,7 @@ $(document).ready( function(){ ```js { infinite: false, // True or False - animationClass: "animate", // Can be any class + animationClass: "animated", // Can be any class delay: 0 // Can be any value (in ms) callback: // Any function } @@ -93,7 +101,7 @@ If you want to hide an element when the page loads and then apply an effect, it ```js $(window).load( function(){ $('#your-id').animateCSS('fadeIn', function(){ - alert('Boom! Animation Complete'); + console.log('Boom! Animation Complete'); }); }); ``` diff --git a/dist/jquery.animatecss.js b/dist/jquery.animatecss.js index 46d3116..b79ae5a 100644 --- a/dist/jquery.animatecss.js +++ b/dist/jquery.animatecss.js @@ -1,5 +1,5 @@ -/*! animateCSS - v1.1.0 - 2014-05-21 -* https://github.com/craigmdennis/animatecss +/*! animateCSS - v1.1.3-1 - 2014-05-27 +* https://github.com/craigmdennis/animateCSS * Copyright (c) 2014 Craig Dennis; Licensed MIT */ (function() { diff --git a/dist/jquery.animatecss.min.js b/dist/jquery.animatecss.min.js index 382859d..a595c02 100644 --- a/dist/jquery.animatecss.min.js +++ b/dist/jquery.animatecss.min.js @@ -1,5 +1,5 @@ -/*! animateCSS - v1.1.0 - 2014-05-21 -* https://github.com/craigmdennis/animatecss +/*! animateCSS - v1.1.3-1 - 2014-05-27 +* https://github.com/craigmdennis/animateCSS * Copyright (c) 2014 Craig Dennis; Licensed MIT */ (function(){"use strict";var a;a=jQuery,a.fn.extend({animateCSS:function(b,c){var d,e,f,g,h,i,j,k,l;return j={effect:b,delay:0,animationClass:"animated",infinite:!1,callback:c,debug:!1},k="webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend",j=a.extend(j,c),h=function(a){return e(a)},e=function(a){return j.infinite===!0&&(j.animationClass+=" infinite"),setTimeout(function(){return l(a),d(a),g(a)},j.delay)},d=function(a){return a.addClass(j.effect+" "+j.animationClass+" ")},l=function(a){return"hidden"===a.css("visibility")&&a.css("visibility","visible"),a.is(":hidden")?a.show():void 0},i=function(a){return a.removeClass(j.effect+" "+j.animationClass)},f=function(a){return j.infinite===!1&&i(a),"function"==typeof j.callback?j.callback.call(a):void 0},g=function(a){return a.one(k,function(){return f(a)})},this.each(function(){return h(a(this))})}})}).call(this); \ No newline at end of file From fc20467dc3916aeea689335b88b41a555604e535 Mon Sep 17 00:00:00 2001 From: Craig Dennis Date: Tue, 27 May 2014 01:36:06 +0100 Subject: [PATCH 2/3] Bumped version to v1.1.4-0 --- CHANGELOG.md | 4 ++++ animateCSS.jquery.json | 2 +- bower.json | 2 +- package.json | 2 +- 4 files changed, 7 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 56772a2..8b8e250 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ + +### 1.1.4-0 (2014-05-27) + + ### 1.1.3-1 (2014-05-21) diff --git a/animateCSS.jquery.json b/animateCSS.jquery.json index ebe05aa..6806085 100644 --- a/animateCSS.jquery.json +++ b/animateCSS.jquery.json @@ -2,7 +2,7 @@ "name": "animateCSS", "title": "Animate CSS jQuery Plugin", "description": "A jQuery plugin to dynamically apply animate.css animations with callbacks", - "version": "1.1.3-1", + "version": "1.1.4-0", "homepage": "https://github.com/craigmdennis/animateCSS.git", "author": { "name": "Craig Dennis", diff --git a/bower.json b/bower.json index 46ac10f..09c9210 100644 --- a/bower.json +++ b/bower.json @@ -2,7 +2,7 @@ "name": "animateCSS", "description": "A jQuery plugin to dynamically apply animate.css animations with callbacks", "main": "dist/jquery.animatecss.js", - "version": "1.1.3-1", + "version": "1.1.4-0", "dependencies": { "animate.css": "~3.1.1" }, diff --git a/package.json b/package.json index 0308768..832d950 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "animateCSS", - "version": "1.1.3-1", + "version": "1.1.4-0", "description": "Animate CSS jQuery Plugin", "keywords": [ "jquery-plugin", From d9650518b6ff0442233da7d12bd29042d6d9013c Mon Sep 17 00:00:00 2001 From: Craig Dennis Date: Tue, 27 May 2014 01:48:03 +0100 Subject: [PATCH 3/3] Bumped version to v1.1.4 --- animateCSS.jquery.json | 2 +- bower.json | 2 +- package.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/animateCSS.jquery.json b/animateCSS.jquery.json index 6806085..957eb4c 100644 --- a/animateCSS.jquery.json +++ b/animateCSS.jquery.json @@ -2,7 +2,7 @@ "name": "animateCSS", "title": "Animate CSS jQuery Plugin", "description": "A jQuery plugin to dynamically apply animate.css animations with callbacks", - "version": "1.1.4-0", + "version": "1.1.4", "homepage": "https://github.com/craigmdennis/animateCSS.git", "author": { "name": "Craig Dennis", diff --git a/bower.json b/bower.json index 09c9210..7d42eae 100644 --- a/bower.json +++ b/bower.json @@ -2,7 +2,7 @@ "name": "animateCSS", "description": "A jQuery plugin to dynamically apply animate.css animations with callbacks", "main": "dist/jquery.animatecss.js", - "version": "1.1.4-0", + "version": "1.1.4", "dependencies": { "animate.css": "~3.1.1" }, diff --git a/package.json b/package.json index 832d950..50edb35 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "animateCSS", - "version": "1.1.4-0", + "version": "1.1.4", "description": "Animate CSS jQuery Plugin", "keywords": [ "jquery-plugin",