Tuesday, 27 August 2013

Toggle CSS with jQuery

Toggle CSS with jQuery

$('.information').click(function(e){
$('.work-overlay').fadeOut();
$('.information-overlay').fadeToggle();
e.preventDefault();
});
I've got the following code that fades in an overlay, when .information is
clicked (using fadeToggle).
When this happens, I need to simultaneously toggle overflow:hidden on the
body element. Would anyone know how to achieve this?

No comments:

Post a Comment