Code Snippet
Combine Slide and Fade Functions
$.fn.slideFadeToggle = function(speed, easing, callback) {
return this.animate({opacity: 'toggle', height: 'toggle'}, speed, easing, callback);
}; Usage
$("#something").click(function() {
$(this).slideFadeToggle();
});
As if you read my thoughts. Thanks Chris :D
This is beautiful! I can imagine using this effect on many things.
Thanks!
Any demo? I would like to see it if there is some.
Thanks, m8! Your site is great! Found a lot of usefull tips!
Hello, is there any Demo to download, it doesn’t work for me.
thx for the nice post.
DigWP
A book and blog co-authored by Jeff Starr and myself about the World's most popular publishing platform.
Quotes on Design
Design, like Art, can be an elusive word to define and an awfully fun thing to have opinions about.
HTML-Ipsum
One-click copy to clipboard access to Lorem Ipsum text that comes wrapped in a variety of HTML.
Bookshelf
Hey Chris, what books do you recommend? These, young fertile mind, these.