Skip to content

Instantly share code, notes, and snippets.

@timmywil
Created September 14, 2011 19:37
Show Gist options
  • Save timmywil/1217550 to your computer and use it in GitHub Desktop.
Save timmywil/1217550 to your computer and use it in GitHub Desktop.
Toggle animations with jQuery 1.7
$('#open-menu').click(function() {
// No more .stop( true, true )
// jQuery will remember state automatically
$someMenu.stop().slideToggle(1000);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment