Skip to content

Instantly share code, notes, and snippets.

@thunsaker
Created February 11, 2011 16:51
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thunsaker/822640 to your computer and use it in GitHub Desktop.
Save thunsaker/822640 to your computer and use it in GitHub Desktop.
Basic dropdown menu with arrow and animation
function openMenu() {
$(document).ready(function () {
if ($('#div_menu_links_wrapper').is(':hidden')) {
$('#img_menu_arrow_down').css('display', 'none');
$('#img_menu_arrow_up').css('display', 'block');
$('#div_menu_links_wrapper').slideDown('slow', function myfunction() { });
} else {
$('#img_menu_arrow_down').css('display', 'block');
$('#img_menu_arrow_up').css('display', 'none');
$('#div_menu_links_wrapper').slideUp('slow', function myfunction() { });
}
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment