-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathjquery.animationCollection.js
More file actions
38 lines (34 loc) · 988 Bytes
/
jquery.animationCollection.js
File metadata and controls
38 lines (34 loc) · 988 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/* jQuery.animations - v0.2 - K Reeve aka BinaryKitten
*
* Various Animations - I don't claim that i originally coded all of these
* I've just added them to this collection for my own usage
*
*
* ------------ Version History -----------------------------------
* v0.2
* placed the function inside an enclosure
*
* v0.1
* The 1st version - Flash, animDelay, FadeOutSlideUp
*/
(function($){
jQuery.fn.extend({
flash: function(speed,fnc) {
var $this = $(this);
return $this.fadeOut(speed,function(){
if (typeof fnc != null) {
$this.fadeIn(speed,fnc);
} else {
$this.fadeIn(speed);
}
});
},
animDelay: function(amount) {
var $this = $(this);
return $this.animate({'opacity':$this.css('opacity')},amount);
},
FadeOutSlideUp: function(speed, easing, callback) {
return this.animate({opacity: 0, height: 0}, speed, easing, callback);
}
});
})(jQuery);