Gopal Venkatesan![]()
The Carousel Control provides a widget for browsing among a set of like objects arrayed vertically or horizontally in an overloaded page region. The "carousel" metaphor derives from an analogy to slide carousels in the days of film photography; the Carousel Control can maintain fidelity to this metaphor by allowing a continuous, circular navigation through all of the content blocks.
This is a plugin for additing animation to the Carousel widget.
<script src="http://yui.yahooapis.com/3.2.0/build/yui/yui-min.js"></script>// Due to a bug the following CSS asset should be included statically:
// http://yui.yahooapis.com/gallery-2010.10.13-20-59/build/gallery-carousel/assets/skins/sam/gallery-carousel.css
YUI({
//Last Gallery Build of this module
gallery: 'gallery-2012.03.23-18-00'
}).use("gallery-carousel", "gallery-carousel-anim", "substitute", function(Y) {
var carousel = new Y.Carousel({ boundingBox: "#container",
contentBox: "#container > ol" });
carousel.plug(Y.CarouselAnimPlugin, { animation: { speed: 1, effect: Y.Easing.backIn } });
carousel.render();
setTimeout(function () {
carousel.scrollPageForward();
}, 2000);
});
© 2006-2013 Yahoo! Inc. All rights reserved.
All code on this site is licensed under the BSD License unless stated otherwise.
About This Site · Security Contact Info