diff options
| author | Alexandr Kondrashov <[email protected]> | 2015-12-08 02:18:32 +0300 |
|---|---|---|
| committer | Alexandr Kondrashov <[email protected]> | 2015-12-08 02:18:32 +0300 |
| commit | 5f316e6dc34f57bfbd0ebf922fe5a01cc6bb38c4 (patch) | |
| tree | 2951782d8d0aadb61dae9122d0f508a75ed8e7eb /docs/components/carousel.md | |
| parent | c9725926b2f30bed4e37f57c20ef8ffeb2fd233b (diff) | |
| parent | afbaf4350560eaf2135fb0dc6dd761ebb746ac40 (diff) | |
| download | bootstrap-5f316e6dc34f57bfbd0ebf922fe5a01cc6bb38c4.tar.xz bootstrap-5f316e6dc34f57bfbd0ebf922fe5a01cc6bb38c4.zip | |
Merge branch 'v4-dev' of https://github.com/twbs/bootstrap into patch-1
Diffstat (limited to 'docs/components/carousel.md')
| -rw-r--r-- | docs/components/carousel.md | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/docs/components/carousel.md b/docs/components/carousel.md index 79658eb6e..76278281e 100644 --- a/docs/components/carousel.md +++ b/docs/components/carousel.md @@ -4,7 +4,7 @@ title: Carousel group: components --- -A slideshow component for cycling through elements—images or slides of text—like a carousel. **Nested carousels are not supported.** +A slideshow component for cycling through elements—images or slides of text—like a carousel. In browsers where the [Page Visibility API](http://www.w3.org/TR/page-visibility/) is supported, the carousel will avoid sliding when the webpage is not visible to the user (such as when the browser tab is inactive, the browser window is minimized, etc.). **Nested carousels are not supported.** ## Contents @@ -144,9 +144,9 @@ Options can be passed via data attributes or JavaScript. For data attributes, ap <thead> <tr> <th style="width: 100px;">Name</th> - <th style="width: 50px;">type</th> - <th style="width: 50px;">default</th> - <th>description</th> + <th style="width: 50px;">Type</th> + <th style="width: 50px;">Default</th> + <th>Description</th> </tr> </thead> <tbody> @@ -180,7 +180,7 @@ Options can be passed via data attributes or JavaScript. For data attributes, ap ### Methods -#### .carousel(options) +#### `.carousel(options)` Initializes the carousel with an optional options `object` and starts cycling through items. @@ -190,23 +190,23 @@ $('.carousel').carousel({ }) {% endhighlight %} -#### .carousel('cycle') +#### `.carousel('cycle')` Cycles through the carousel items from left to right. -#### .carousel('pause') +#### `.carousel('pause')` Stops the carousel from cycling through items. -#### .carousel(number) +#### `.carousel(number)` Cycles the carousel to a particular frame (0 based, similar to an array). -#### .carousel('prev') +#### `.carousel('prev')` Cycles to the previous item. -#### .carousel('next') +#### `.carousel('next')` Cycles to the next item. |
