An elegant, lightweight slideshow script(mootools)

BarackSlideshow is a very tiny and lightweight slideshow script, that takes the power of MorphList to enhance visualization and navigation of the images .




With a markup like this:

BarackSlideshow is initialized as follows:

window.addEvent('domready', function(){
new BarackSlideshow('menu', 'pictures', 'loading', {transition: 'slide-left', auto: true});


  • transition (defaults to ‘fade’) Can be ’slide-left’, ’slide-right’, ’slide-top’, ’slide-bottom’, ‘fade’
  • auto (defaults to false) Whether to move from image to image automatically
  • autostart (defaults to false) Whether to start slideshow automatically upon initialization
  • autointerval (defaults to 2000) Interval time from image to image in ms
  • tween (defaults to {duration: 700}) Options to pass to MooTools Fx.Tween, which takes care of image transitions.


Leave a comment