Fading visibility of element using jQuery

前端 未结 5 1671
广开言路
广开言路 2020-12-13 09:02

I\'m having some trouble with finding the visibility param for JQuery.

Basically... the code below does nothing.

$(\'ul.load_details\').animate({
            


        
5条回答
  •  情深已故
    2020-12-13 09:32

    You can't animate visibility. Either something is visible, or it's not (event 1% opaque items are 'visible'). It's much like half-existing - doesn't make sense. You're likely better off animating the opacity (via .fadeTo() etc).

提交回复
热议问题