I use this jquery plugin: http://tympanus.net/codrops/2013/03/29/quotes-rotator/ Here is JSFiddle: http://jsfiddle.net/LmuR7/
This is my settings(also there are some options but don't know how to use it):
<script src="js/jquery.cbpQTRotator.min.js">
</script>
<script>
$( function () {
/*
- how to call the plugin:
$( selector ).cbpQTRotator( [options] );
- options:
{
// default transition speed (ms)
speed : 700,
// default transition easing
easing : 'ease',
// rotator interval (ms)
interval : 8000
}
- destroy:
$( selector ).cbpQTRotator( 'destroy' );
*/
$( '#cbp-qtrotator' ).cbpQTRotator();
}
);
</script>
How can I stop code if it scrolled to top and start if it scrolled down?