how to fadeout a div using jquery code example
Example 1: fadein fadeout jquery
$('.btn-cart').click(function(e) {
e.preventDefault();
$('.cartlist').fadeIn().addClass('active');
});
$('.btn-cartlist-close').click(function() {
$('.cartlist').removeClass('active').fadeOut();
});
Example 2: jquery fade out
$(selector).fadeOut(duration)
$(selector).fadeIn(duration)