×`; $('.wcsales-notification-content').append( ordercontent ).addClass('animated '+inanimation).removeClass(outanimation); setTimeout(function() { $('.wcsales-notification-content').removeClass(inanimation).addClass(outanimation); }, intervaltime-500 ); i++; }, intervaltime ); } } ); }, duration ); // Close Button $('.wcsales-notification-content').on('click', '.wccross', function(e){ e.preventDefault() $(this).closest('.wcsales-notification-content').removeClass(inanimation).addClass(outanimation); }); });