Skip to content

Instantly share code, notes, and snippets.

@mplacona
Created August 24, 2012 14:13
Show Gist options
  • Save mplacona/3451055 to your computer and use it in GitHub Desktop.
Save mplacona/3451055 to your computer and use it in GitHub Desktop.
Nivo Slider - Final JS
<script type="text/javascript">
$(window).load(function() {
$('#slider .nivo-nextNav').live('mouseover', function() {
$('img').attr("data-transition", "slideInLeft");
});
$('#slider .nivo-prevNav').live('mouseover', function() {
$('img').attr("data-transition", "slideInRight");
});
$('#slider').nivoSlider({
directionNavHide: true,
manualAdvance: true,
directionNav: true,
controlNav: false,
afterLoad: function(){jQuery('#slider .nivo-prevNav').hide();},
afterChange: function(){arrowsCtrl();}
})
});
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment