Carousel methods
This method allows to initialize the carousel. It’s mainly used if you destroy()
the instance. Otherwise, there isn’t any reason to init()
the carousel since it’s automatically done by the plugin on load.
[pastacode lang=”javascript” manual=”wpgb.carousel.init()%3B” message=”” highlight=”” provider=”manual”/]
You can destroy the carousel instance at any time thanks to this method.
[pastacode lang=”javascript” manual=”wpgb.carousel.destroy()%3B” message=”” highlight=”” provider=”manual”/]
This method allows to resize the carousel.
[pastacode lang=”javascript” manual=”wpgb.carousel.resize()%3B” message=”” highlight=”” provider=”manual”/]
This method allows to go to the next carousel slide.
[pastacode lang=”javascript” manual=”wpgb.carousel.next()%3B” message=”” highlight=”” provider=”manual”/]
This method allows to go to the previous carousel slide.
[pastacode lang=”javascript” manual=”wpgb.carousel.previous()%3B” message=”” highlight=”” provider=”manual”/]
This method allows to select a slide and to scroll to it in the carousel.
Argument | Type | Description |
index | integer | Slide index (0 index based) |
[pastacode lang=”javascript” manual=”wpgb.carousel.select(%202%20)%3B” message=”” highlight=”” provider=”manual”/]