Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

only show one pre page #47

Open
differentMonster opened this issue Feb 28, 2019 · 0 comments
Open

only show one pre page #47

differentMonster opened this issue Feb 28, 2019 · 0 comments

Comments

@differentMonster
Copy link

differentMonster commented Feb 28, 2019

my slider is show all the item on it, i only want to show it one by one and other are hide when one of them show

<template>
  <div>
     <flickity ref="flickity" :options="flickityOptions">
       <div class="carousel-cell text-center p-4">slide 1</div>
       <div class="carousel-cell text-center p-4">slide 2</div>
       <div class="carousel-cell text-center p-4">slide 3</div>
       <div class="carousel-cell text-center p-4">slide 4</div>
       <div class="carousel-cell text-center p-4">slide 5</div>
     </flickity>
  </div>
</template>

<script>
 export default {
   component: {
   },
   data () {
     return {
       flickityOptions : {
         "autoPlay": 5000,
         "pageDots": false,
         "prevNextButtons": false,
         "resize": true,
       }
     }
   }
 }
</script>

this is my code and it was showing slide 1 - slide -5 on the page

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant