Animating inline elements with jQuery

前端 未结 6 505
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-14 08:40

I am trying to show and hide an inline element (eg a span) using jQuery.

If I just use toggle(), it works as expected but if I use toggle(\"slow\") to give it an ani

6条回答
  •  离开以前
    2020-12-14 09:12

    Just one CSS-property will make you happy: http://terion-fallen.livejournal.com/332945.html

    #animated-element { display: inline-block!important }
    

提交回复
热议问题