Skip to content

Instantly share code, notes, and snippets.

@malachi358
Created October 25, 2013 00:51
Show Gist options
  • Select an option

  • Save malachi358/7147761 to your computer and use it in GitHub Desktop.

Select an option

Save malachi358/7147761 to your computer and use it in GitHub Desktop.
Jquery Function to change style
$('.btnName').click(function() {
top.$('#panel').toggle(function() {
$(this).animate({
// style change
}, 500);
},
function() {
$(this).animate({
// style change back
}, 500);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment