Skip to content

Instantly share code, notes, and snippets.

@EdCharbeneau
Created August 21, 2012 18:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save EdCharbeneau/3418346 to your computer and use it in GitHub Desktop.
Save EdCharbeneau/3418346 to your computer and use it in GitHub Desktop.
Hide/Show orbit nav with jQuery
//must wrap the orbit element in a div
// wrapper > orbit
$(window).load(function () {
$('#orbit').orbit({
timer: true,
animation: 'horizontal-slide',
bullets: true
});
$('#wrapper .slider-nav').hide();
});
$('#wrapper').on({
mouseenter: function () {
$('#wrapper .slider-nav').show();
},
mouseleave: function () {
$('#wrapper .slider-nav').hide();
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment