开发者

jQuery - SlideDown easing

开发者 https://www.devze.com 2023-03-23 16:30 出处:网络
i was wondering if there is any way to make a slideDown() moveme开发者_Go百科nt to look more smooth without the use of jQuery UI, just plain jquery.

i was wondering if there is any way to make a slideDown() moveme开发者_Go百科nt to look more smooth without the use of jQuery UI, just plain jquery.

I have this function:

function optionz(){
        $("#panel").slideDown('fast', function(){
        $("#panel").slideDown('slow');});
}

Well, i know that queue: false; works for animate() and i can make the animations run unqueued but don't know how to do the same with the slideDown().

The easing would require me to set another js file to load, and i really can't afford to make this just for a easing on the animation

Hope you can help me with this one.

Thanks a lot!


Actually, as of jQuery 1.4.3, you don't need to load jQuery UI to do a basic "swing" easing.

$("#panel").slideDown('slow', 'swing', function() {});

See http://api.jquery.com/slideDown/

0

精彩评论

暂无评论...
验证码 换一张
取 消