Skip to content

Instantly share code, notes, and snippets.

@Shelob9
Created May 28, 2013 07:35
Show Gist options
  • Save Shelob9/5661092 to your computer and use it in GitHub Desktop.
Save Shelob9/5661092 to your computer and use it in GitHub Desktop.
CSS to make the Orbit slider in Foundation 4 less obtrusive to content, but a little more noticeable when hovering over the arrows, and jQuery to make the arrows flash on mouseover over .orbit-container so the user notices it's a slider.
$('.orbit-container').hover(function () {
$('.orbit-prev').fadeOut("medium");
$('.orbit-next').fadeOut("medium");
$('.orbit-prev').fadeIn("medium");
$('.orbit-next').fadeIn("medium");
});
.orbit-prev, .orbit-next {border:#2ba6cb 1px solid;}
.orbit-prev:hover, .orbit-next:hover {border:#2ba6cb 4px solid;}
.orbit-prev:hover {border-left:none} .orbit-next:hover {border-right:none}
.orbit-container .orbit-slides-container>* {padding:2px 4px 2px 4px;}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment