

direction The direction in which the carousel is transitioning.īinding to these events is as follows: // Bind to the slide event. RelatedTarget The carousel item that will be next in the logical order. The event data contains two custom properties: You are also passing a function that you defined (nextImage()) into the setTimeout() method, not a variable containing an anonymous function, so include the '()' in that parameter. This event is fired when the plugins slid instance method is invoked once the carousel has completed sliding. direction The direction in which the carousel is transitioning.

The event data contains two custom properties: This event is fired immediately when the plugins slide instance method is invoked. The carousel exposes the following events allowing the developer to tap into its behaviour. carousel("cycle") Cycles through the carousel instance items in a logical order.carousel("pause") Triggers the pause event of the carousel instance stopping it cycling.carousel("prev") Cycles the carousel instance to the previous item.carousel("next") Cycles the carousel instance to the next item.carousel(number) Cycles the carousel to a particular item with at the given index (zero based). The default language direction indicator is reversed byĪ jQuery selector to define any external indicators that highlight the carousels current position Setting the dir="rtl" attribute on the html element.Ī jQuery selector to define any external element to trigger the prev() method.Ī hidden html value that is added to the previous trigger for accessibility purposes. The default language direction indicator is reversed by Overwrites lazyLoadImagesĪ jQuery selector to define any external element to trigger the next() method.Ī hidden html value that is added to the next trigger for accessibility purposes.

Whether to lazily load any images on demand when sliding. Whether to lazily load any images on page load. Whether the carousel responds to touch events Whether the carousel responds to keyboard events The time in milliseconds between carousel transitions. Initialises the plugin with an optional options object NameĪ string containing either the values fade or slide. The carousel exposes the following method signatures.carousel(options) Replace image src attributes with data-src to allow lazy loading of images.
