Skip to content

Commit

Permalink
CHANGE: automatically change slides #8
Browse files Browse the repository at this point in the history
  • Loading branch information
IngridRegina committed Jul 16, 2021
1 parent aeb59c8 commit 35262f6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/ImageSlider/ImageSlider.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,12 @@ export default {
mounted () {
/* this.imageArray = this.images.map(({ filename }) => '@/assets/images/slideshow/' + filename) */
this.imageArray = this.importAll(require.context('@/assets/images/slideshow/', true, /\.jpg|gif|png|svg$/))
this.startSlide()
},

methods: {
startSlide: function () {
this.timer = setInterval(this.next, 3000)
this.timer = setInterval(this.next, 5000)
},

next: function () {
Expand Down

0 comments on commit 35262f6

Please sign in to comment.