Skip to content

Instantly share code, notes, and snippets.

@jonmunson
Created December 9, 2013 15:24
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 jonmunson/7873861 to your computer and use it in GitHub Desktop.
Save jonmunson/7873861 to your computer and use it in GitHub Desktop.
Zurb Orbit custom navigation styles - My solution in F5 was to create new completely separate buttons (".next-slide" and ".prev-slide"), and then trigger the existing functionality with some JS overrides.
/* hide the built in controls */
.orbit-container .orbit-prev, .orbit-container .orbit-next {display: none;}
<span class="prev-slide">
<img src="images/slider-nav-left.png">
</span>
<span class="next-slide">
<img src="images/slider-nav-right.png">
</span>
// Custom Slider button controls
$(".next-slide").click(function() {
$(".slideshow-wrapper .orbit-next").click();
$(".slideshow-wrapper .orbit-timer").click(); // Remove this line to pause the orbit. (it pauses whenever you change slides by default)
console.log("next button");
});
$(".prev-slide").click(function() {
$(".slideshow-wrapper .orbit-prev").click();
$(".slideshow-wrapper .orbit-timer").click(); // Remove this line to pause the orbit. (it pauses whenever you change slides by default)
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment