Press "Enter" to skip to content

Ken Burns Effect-style Slideshow Plugin for jQuery | Slideshowify

jQuery.slideshowify.js is a jQuery plugin for creating a Ken Burns slideshow effect from images that match a selector. Images that don’t quite fit the window’s proportions (generally the case) are cropped and moved across the screen. This is also similar to the screensaver for Mac.

ken burns effect slider, pure css background slideshow ken burns effect, ken burns effect demo, image slider with zoom effect, javascript ken burns effect, ken burns effect online

How to make use of it:

1. Load the necessary jQuery library and jQuery traversal plugin (for smooth CSS3 transitions and transitions) into the document.

<script src="/path/to/cdn/jquery.min.js"></script>
<script src="/path/to/cdn/jquery.transit.min.js"></script>

2. Download and upload jquery.slideshowify.js after jQuery.

<script src="js/jquery.slideshowify.min.js"></script>

3. Create a container element to hold the slide show.

<div id="demo">
</div>

4. Define your image data in the JSON file as below.

// images.json
[
   {
      "src":"1.jpg",
      "w":"2000",
      "h":"1328"
   },
   {
      "src":"2.jpg",
      "w":"2000",
      "h":"1328"
   },
   {
      "src":"3.jpg",
      "w":"2000",
      "h":"1329"
   },
   // ...
]

5. Configure the plugin on the target element and specify the path to the JSON file.

$.slideshowify({
  parentEl : '#demo',
  dataUrl  : "js/photos.json",
  // dataType: "jsonp",
});

6. You can also configure the plugin on all images within the page to create a full-screen slideshow.

<img src="1.jpg" alt="Image 1" />
<img src="2.jpg" alt="Image 2" />
<img src="3.jpg" alt="Image 3" />
...
$("img").slideshowify();

7. The composition of the effect of burns.

$.slideshowify({
  parentEl : '#demo',
  dataUrl: "js/photos.json",
  fadeInSpeed: 1500,
  fadeOutSpeed: 1500,
  aniSpeedMin: 9000, 
  aniSpeedMax: 15000
});

8. Determine whether to randomize images.

$.slideshowify({
  parentEl : '#demo',
  dataUrl: "js/photos.json",
  randomize: true,
});

9. Functions.

$.slideshowify({
  parentEl : '#demo',
  dataUrl: "js/photos.json",
  filterFn: function(imgs){
    // filter data
    var fixedImgs = [];
    $.each(imgs, function(i, img){
      fixedImgs.push($.extend(img.versions["9"], {id:img.id}));
    });
    return fixedImgs;
  },
  afterFadeIn : function(curImage){
    // do something
  },
  beforeFadeOut : function(curImage){
    // do something else
  }
});

Dynamic Slideshow With Ken Burns Effect, Slideshowify Plugin/Github, jquery ken burns effect background,


See Demo And Download

Official Website(subchild): Click Here

This superior jQuery/javascript plugin is developed by subchild. For extra advanced usage, please go to the official website.

Be First to Comment

    Leave a Reply

    Your email address will not be published.