Skip to content

Commit 30e60cd

Browse files
committed
feat(carousel): update examples, change default autoplay hover prop
1 parent bd76d2c commit 30e60cd

File tree

6 files changed

+18
-6
lines changed

6 files changed

+18
-6
lines changed

dist/vue-carousel.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/db.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

docs/public

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Subproject commit ae6f2a1a7220753369887874f57108099e508dc9
1+
Subproject commit 40e72b4071a7eee3070b22d1b5de547196bdf71a

docs/source/examples/index.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,22 @@ Instead of scrolling on a per item basis, the carousel will scroll the configure
2121

2222
<script async src="//jsfiddle.net/toddlawton/6ckc1pqv/embed/result,js/"></script>
2323

24+
## Autoplay
25+
26+
The carousel will auto-advance slides unless the carousel is hovered upon.
27+
28+
<script async src="//jsfiddle.net/toddlawton/n1argwgg/embed/result,js/"></script>
29+
30+
## Navigation
31+
32+
Buttons added to advance the carousel in either direction.
33+
34+
<script async src="//jsfiddle.net/toddlawton/46wegz8a/embed/result,js/"></script>
35+
2436
## Customized
2537

2638
Customized pagination dot colors and sizes. Customized speed and easing.
2739

2840
<script async src="//jsfiddle.net/toddlawton/ycp9bwhp/embed/result,js/"></script>
2941

30-
<style type="text/css">iframe { min-height: 230px; }</style>
42+
<style type="text/css">iframe { max-height: 230px; }</style>

docs/themes/vue/source/js/vue-carousel.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/mixins/autoplay.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ const autoplay = {
1919
*/
2020
autoplayHoverPause: {
2121
type: Boolean,
22-
default: false,
22+
default: true,
2323
},
2424
},
2525
data() {

0 commit comments

Comments
 (0)