A Fork of component/swipe that falls back to using MarginLeft (for IE 8), emits events, and re-determines size on window resize (useful for full-width carousels)
$ component install bmcmahen/swipe
When an element is shown, event is triggered with index of currently shown event
Create a swipe object for
el. This should be a container element
that wraps a list of several items. View ./example.html for a
Set the transition duration, defaults to 300ms.
Set the cycle interval, defaults to 5000ms.
Play through all items using the cycle interval.
Is on the first item.
Is on the last item.
Show the previous item if present, or do nothing.
Show the next item if present, or do nothing.
Show item with the given index
i with the given
ms defaulting to the