It is passed (winCount:Number, winners:Array, finalNumbers:Array) easing : 'swing / String: easing type for final spin.
Description jQuery Slot Machine by Jose Luis Represa is a simple, lightweight jQuery plugin for giving slot machine animation effect to websites.
In your web page: script script script jQuery(function 350, width:500 /script div id"slotMachine1" a href img src"image_g" height"200 /a a href img src"image_g" height"100 /a a href img src"image_g" height"150 /a /div Documentation (Coming soon examples (Coming soon release History (Nothing yet).I recommend the easing plugin and easeOutSine, or bono yelmo cines an easeOut of your choice.JSlots is 2k of jQuery slot machine magic.JSlots.js" euro lotto annahmeschluss berlin Attach easing plugin (optional but highly recommended for nice animation) script src"jquery.
Madrid 46, london 30, nY 23, matrix.
Here are some recommended styles:.jSlots-wrapper overflow: hidden; to hide the magic height: 20px; whatever the height of your list items are display: inline-block; to size width correctly, can use float too, or width border: 1px solid #999; blog comments powered by Disqus).
FinalNumbers gives the index of the li each slot stopped on in order.
Time : 7000, / Number: total time of spin animation loops : 6 / Number: times it will spin during the animation ; Usage, attach jQuery (successfully tested down.4.1) script Attach jSlots plugin script src"jquery.
Change the selected element: ev /Previous element xt /Next element, get selected element: tive /Returns element index inside an object.Home, slideshow Scroller, slot Machine - A jQuery plugin to make slot machine animation effect.It turns any list ( ol or ul ) into a slot machine!Pass an int as miliseconds to make the machine auto rotate repeat: false, authors, jose Luis Represa, license jQuery-SlotMachine is released under the.Check the example page!It is passed (finalNumbers:Array).Installation, include the script after the jQuery library: script Usage, creating the machine: var machine (foo).slotMachine( params Shuffle: uffle( repeat, onStopCallback /No args to make rotate infinitely.
OnWin :.noop, / Function: run on winning number.
Shuffle your elements, randomize your results or make an slide.
Jquery, plugin, lightweight, animation, effect, websites, Visit site or repository.