// Close the popup when the close button is clicked $('.close-popup').on('click', function(){ $('.auto-popup').fadeOut(); }); }); /* Center the popup and make it cover the screen */ .auto-popup {

Blog