There is a hidden block that climbs (or should) by clicking on the button. It also adds an animation to the class animated %названиСАнимации% Animation animated %названиСАнимации% . But if it is display:none how to make the menu pop out with the specified animation

 $('#nb-close-toggle').click(function(){ //ΠΊΠ½ΠΎΠΏΠΊΠ° $(this).toggleClass('open'); var animationName = "какая Ρ‚ΠΎ анимация"; $('.menu').addClass('animated ' + animationName).one(animationEnd, function() { $(.menu).removeClass('animated ' + animationName); }); }); 
  • one
    try before .addClass to add .show () - Anser

1 answer 1

something like this

 $('.menu').show(0).addClass('animated ' + animationName).one(animationEnd, function() { $(.menu).removeClass('animated ' + animationName); });