Simple fadeIn and visibility in jQuery

后端 未结 3 1996
Happy的楠姐
Happy的楠姐 2021-02-13 13:10

I\'m trying to change the css property visibility of a div to visiblewith a jQuery .fadeIn()transition.

Here is my code :

3条回答
  •  遇见更好的自我
    2021-02-13 13:39

    You cannot animate visibility. fadein is keyed off display:none;, so that should be #test's initial state via CSS. If you need to keep the layout, you can try wrapping test in a div that specifies the height and/or width you need.

提交回复
热议问题