@@ -109,11 +109,16 @@ supported sliding inteval is 1000ms (1 second).
109
109
In browsers where the [ Page Visibility API] ( https://www.w3.org/TR/page-visibility/ )
110
110
is supported, the carousel will avoid sliding when the webpage is not visible to
111
111
the user (such as when the browser tab is inactive, the browser window is minimized, etc.).
112
+ Sliding will resume when the browser tab is active.
112
113
113
114
### Pausing the carousel
114
115
To pause the carousel from auto sliding, set the ` interval ` prop to ` 0 ` . To restart a
115
116
paused carousel, set the ` interval ` back to the desired number of ms.
116
117
118
+ When the carousel is paused, the user can still switch slides via the controls (if enabled) or
119
+ touch swipe (on touch enabled devices, if not disabled).
120
+
121
+
117
122
## Controls and Indicators
118
123
Set the prop ` controls ` to enable the previous and next control buttons.
119
124
@@ -122,8 +127,12 @@ Set the prop `indicators` to show the slide indicator buttons.
122
127
Both indicators and controls can be set at the same time or independently.
123
128
124
129
125
- ## Crossfade animation
126
- Set the ` <b-carousel> ` ` fade ` prop to true to animate slides with a fade transition
130
+ ## Carousel animation
131
+ Carousel, by default, uses a sliding animation. You can change teh slide animation to
132
+ a cross-fade animation, or disable animation completely.
133
+
134
+ ### Crossfade animation
135
+ Set the ` <b-carousel> ` ` fade ` prop to ` true ` to animate slides with a fade transition
127
136
instead of the default slide animation.
128
137
129
138
``` html
@@ -152,6 +161,38 @@ instead of the default slide animation.
152
161
<!-- carousel-fade.vue -->
153
162
```
154
163
164
+ ### Disable animation
165
+ Set the ` <b-carousel> ` ` no-animation ` prop to ` true ` to disable slide animation.
166
+
167
+ ``` html
168
+ <div >
169
+ <b-carousel id =" carousel-no-anim"
170
+ style =" text-shadow : 0px 0px 2px #000 "
171
+ no-animation
172
+ indicators
173
+ img-width =" 1024"
174
+ img-height =" 480" >
175
+ <b-carousel-slide caption =" First slide"
176
+ img-src =" https://picsum.photos/1024/480/?image=10" >
177
+ </b-carousel-slide >
178
+ <b-carousel-slide caption =" Second Slide"
179
+ img-src =" https://picsum.photos/1024/480/?image=12" >
180
+ </b-carousel-slide >
181
+ <b-carousel-slide caption =" Third Slide"
182
+ img-src =" https://picsum.photos/1024/480/?image=22" >
183
+ </b-carousel-slide >
184
+ <b-carousel-slide caption =" Fourth Slide"
185
+ img-src =" https://picsum.photos/1024/480/?image=23" >
186
+ </b-carousel-slide >
187
+ </b-carousel >
188
+ </div >
189
+
190
+ <!-- carousel-no-anim.vue -->
191
+ ```
192
+
193
+ ## Touch swipe support
194
+ On touch enabled devices, users can switch slides by swiping left or right on the carousel.
195
+ To disable touch control, set the ` no-touch ` prop to ` true ` .
155
196
156
197
## V-model support
157
198
Programmaticaly control which slide is showing via ` v-model ` (which binds to the
0 commit comments