takes a list of dom elements and swaps their classes to display one at a time
$ component install bmcmahen/swap-elements
play
stop
next
prev
indexChanged
with the index of the current element.
With the default template, attributes available include:
confirmation('.list-elements').play();
Swaps elements on loop.
Stops swapping elements automatically.
Shows the next element.
Shows the previous element.
Go to the specified index of an element in the list of elements.
MIT