Sunday, May 12, 2024
 Popular · Latest · Hot · Upcoming
134
rated 0 times [  137] [ 3]  / answers: 1 / hits: 55121  / 15 Years ago, wed, november 4, 2009, 12:00:00

How can use the slideDown() function with easing?



Maybe extend it somehow?



I'm looking for something like this:



jQuery.fn.slideDown = function(speed, easing, callback) {
return ...
};


So i can use it slide this



$('.class').slideDown('400','easeInQuad');


or this



$('.class').slideDown('400','easeInQuad',function(){
//callback
});

More From » jquery

 Answers
6

Take a look at this page, which contains many easing functions: http://gsgd.co.uk/sandbox/jquery/easing/



Using that plugin you can do things like:



$(element).slideUp({
duration: 1000,
easing: method,
complete: callback});

[#98391] Thursday, October 29, 2009, 15 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
aubriea

Total Points: 641
Total Questions: 118
Total Answers: 101

Location: French Southern and Antarctic Lands
Member since Fri, Jan 6, 2023
1 Year ago
;