Submit your widget

Image Player/Slideshow with jQuery

Created 14 years ago   Views 12157   downloads 2211    Author Kelli Shaver
Image Player/Slideshow with jQuery
View DemoDownload
102
Share |

I wanted an image player/slideshow that looked and functioned similarly to a video player. After some playing around, this was the result. You can click different points on the scrubber to jump back and forth within the slideshow, and hovering over the image will pause the show. Of course, you can also use the play/pause button. Images that are larger than the stage will automatically be scaled to fit.

I had intended to add support for dragging the scrubber, but I haven't gotten to it yet. As it is now, they're simply clipped. Scrubber animation isn't perfect yet, but it's a good start, I think.

<ul id="image_player">
  <li><img src="./images/photos/sample1.png"></li>
  <li><img src="./images/photos/sample2.png"></li>
  <li><img src="./images/photos/sample3.png"></li>
</ul>

<script type="text/javascript" src="js/jquery.lumen.js">
  $(function() {
    var options = {
      stageWidth:400,
      stageHeight:300,
      autoStart:true,
      pauseOnHover:true,
      delay:5,
      transition:'slow',
      loop:true
    };
    $('#image_player').imagePlayer(options);
  });
</script>