Skip to content

Instantly share code, notes, and snippets.

@quangpro1610
Created October 1, 2018 15:54
Show Gist options
  • Save quangpro1610/be4ca2c013874f65a7e3a87d31ff40e7 to your computer and use it in GitHub Desktop.
Save quangpro1610/be4ca2c013874f65a7e3a87d31ff40e7 to your computer and use it in GitHub Desktop.
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js"></script>
<script type="text/javascript" src="https://googledrive.com/host/0B-jkZpmlDollT2JzNnNZTXJFYW8"></script>
<script>
$(function() {
$('#slides').slides({
preload: true,
preloadImage: 'http://i1203.photobucket.com/albums/bb383/quangpro1610/loading.gif',
play: 5000,
pause: 2500,
hoverPause: true,
animationStart: function(current) {
$('.caption').animate({
bottom: -35
}, 100);
if (window.console & amp; & amp; console.log) {
// example return of current slide number
console.log('animationStart on slide: ', current);
};
},
animationComplete: function(current) {
$('.caption').animate({
bottom: 0
}, 200);
if (window.console & amp; & amp; console.log) {
// example return of current slide number
console.log('animationComplete on slide: ', current);
};
},
slidesLoaded: function() {
$('.caption').animate({
bottom: 0
}, 200);
}
});
});
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment