开发者

jQuery fadeOut works but not fadeIn

this is my code on jsFiddle, when I try doin开发者_如何学编程g

$('#featuredStores').fadeOut(1000)

it works, but .fadeIn() doesn't work, Similarly when I use .slideUp() it works, but doesn't work when I use .slideDown()

what's the issue here?


Basically slideDown() shows the image. Considering your image is already shown when the DOM is rendered, there is nothing to slide down to. If you set the style as display:none then use slideDown(), it'll work.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜