How to add a fade-in effect when clicking on a div. I have a profile menu dropdown and the click event was made with jQuery. Also, how to make this to close if I click anywhere outside?
This is the code
jQuery(document).ready(function(){
    jQuery(".profile_link_header").click(function(){
        jQuery(".dropdown").toggleClass("active");
    })
});
CSS
.dropdown.active{
    display: block;
}
 
    