Skip to content

Instantly share code, notes, and snippets.

@aaronmcadam
Created February 2, 2010 22:54
Show Gist options
  • Save aaronmcadam/293141 to your computer and use it in GitHub Desktop.
Save aaronmcadam/293141 to your computer and use it in GitHub Desktop.
jQuery cycle plugin example with pause and resume controls
<script type="text/javascript" src="/site_assets/js/cycle.js"></script>
<script type="text/javascript">
$(document).ready(function () {
$("#featured_slideshow").hover(
function() { $("#slides").cycle("pause"); $("#controls").stop().fadeTo("normal", 1); },
function() { $("#slides").cycle("resume"); $("#controls").stop().fadeTo("normal", 0); }
);
$("#slides").cycle({
fx: "fade",
speed: "slow",
timeout: 6000,
next: "#next",
prev: "#prev"
});
});
</script>
@aaronmcadam
Copy link
Author

jQuery cycle plugin example with pause and resume controls

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment