My favorites | Sign in
Logo
                
Search
for
Updated Nov 25, 2009 by aeron.glemann
Labels: Featured, Phase-Implementation
KenBurns  
Documentation

Looking for help? Please post your questions to the Slideshow Google Group!

Extends:

Slideshow

Method: constructor

Creates a Ken Burns slideshow with zooming and panning effects.

Syntax:

var myShow = new Slideshow.KenBurns(element, data, options);

Arguments:

  1. element - (element) The slideshow wrapper element.
  2. data - (array or object) The images, thumbnails, captions and links for the slideshow.
  3. options - (object) All of the Slideshow options in addition to the options below.

Options:

Examples:

<div id="my_show" class="slideshow">
  <img src="1.jpg" alt="Keylin" />
</div>

<script type="text/javascript">
  var myShow = new Slideshow.KenBurns('my_show', ['1.jpg', '2.jpg', '3.jpg'], {pan: 100, zoom: [25, 75]});
</script>

Notes:

  • 1 There is no sub-pixel positioning in any browser, so the quality of the panning is determined by how much the image will pan: an image that pans a lot (ie. a panoramic image in a square slideshow) will animate smoother.
  • 2 The zooming effect is very dependent on the operating system (ie. Windows, Mac, Linux, etc) since the OS is what determines the resampling algorithm used by the browser. In general, any browser on Mac will scale much better. See this FAQ for more information.
Hosted by Google Code