CSS3 transition with jQuery .addClass and .removeClass

前端 未结 5 2109
灰色年华
灰色年华 2021-02-07 05:34

I have a big main navigation panel that I want to animate when it\'s deploying (expanding).

I\'m working with jQuery to trigger the visibility of it by adding/removing t

5条回答
  •  不思量自难忘°
    2021-02-07 05:57

    Have you considered using jQuery UI's animation features? such as

    jQuery('#menu-item-9').hide({duration:200,effect:'blind'});
    

    You could also animate the removal of the class, like

    jQuery('#menu-item-9').removeClass('hidden', {duration:200,effect:'blind'});
    

提交回复
热议问题