Monday, May 20, 2024
 Popular · Latest · Hot · Upcoming
48
rated 0 times [  49] [ 1]  / answers: 1 / hits: 118390  / 15 Years ago, tue, september 15, 2009, 12:00:00

By default if you specify a speed jquery adds a weird looking animation where it expands from the left end corner. I want it to just slide down. Is there a way to do that without importing something else like jquery UI ?



I'm looking something in the lines of :



$(test).show('slow', {animation:'slide'})


If there's no way, then what would be the lightest solution to do this?



Thanks


More From » jquery

 Answers
67

There are the slideDown, slideUp, and slideToggle functions native to jquery 1.3+, and they work quite nicely...



https://api.jquery.com/category/effects/



You can use slideDown just like this:



$(test).slideDown(slow);


And if you want to combine effects and really go nuts I'd take a look at the animate function which allows you to specify a number of CSS properties to shape tween or morph into. Pretty fancy stuff, that.


[#98693] Thursday, September 10, 2009, 15 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
aidan

Total Points: 72
Total Questions: 95
Total Answers: 121

Location: Uzbekistan
Member since Sat, Feb 27, 2021
3 Years ago
aidan questions
Mon, Oct 11, 21, 00:00, 3 Years ago
Wed, Sep 29, 21, 00:00, 3 Years ago
Sun, Sep 5, 21, 00:00, 3 Years ago
Thu, Jan 16, 20, 00:00, 4 Years ago
;