Looking for help? Please post your questions to the Slideshow Google Group! Extends:Slideshow Method: constructorCreates a Ken Burns slideshow with zooming and panning effects. Syntax:var myShow = new Slideshow.KenBurns(element, data, options); Arguments:- element - (element) The slideshow wrapper element.
- data - (array or object) The images, thumbnails, captions and links for the slideshow.
- options - (object) All of the Slideshow options in addition to the options below.
Options:- pan1 - (integer or array: default 100) An integer, or range of integers as an array, from 0 to 100 that pans the slide 0% to 100% of it's overflow.
- zoom2 - (integer or array: default 50) An integer, or range of integers as an array, from 0 to 100 that zooms the slide 1× to 2× of the size of the slideshow.
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.
|