Hi there,
I have a series of slideshows on a single page. They activate (independently) on mouseover.
At present, the slideshows pause on mouseout. I would like for each of them to return (paused) to the first slide instead. Ideally this return to the first slide would also be a fade transition.
The code in place at the moment is as follows:
- <script src="/scripts/js/jquery.cycle.min.js"></script>
- <script type="text/javascript">
- $(document).ready(function() {
- $('div.gallery').cycle({
- fx: 'fade',
- speed: 500,
- timeout: 1600
- });
-
- $("div.gallery").cycle('pause'); //we pause the animation by default
-
- $("div.gallery").mouseover(function(){
- $(this).cycle('resume');
- }).mouseout(function(){
- $(this).cycle('pause');
- });
- });
- </script>
I have a live test page which you can see here:
Any help is greatly appreciated!
David