Code Monkey home page Code Monkey logo

Comments (4)

antoniandre avatar antoniandre commented on May 28, 2024

Hi @mmommo,
The autoplay option is set once for all and if true, sets the timer to go to the next slide.
The only way to pause it is on mouseover.
When you mouse out, the autoplay will resume from where it was.
You can customize the pause icon as per the Codepen bellow.

Regarding the goToSlide function, like in the example https://antoniandre.github.io/vueper-slides/#ex--external-controls, this is how to use it (using Vue refs):

button(@click="$refs.myVueperSlides.goToSlide(3 - 1)") GO TO SLIDE 3

Here is a Codepen demo for you: https://codepen.io/antoniandre/pen/BaaYjJN

Hope it helps.

from vueper-slides.

antoniandre avatar antoniandre commented on May 28, 2024

related to #47.

from vueper-slides.

antoniandre avatar antoniandre commented on May 28, 2024

Hi @mmommo,
In version 1.21.0, it is now possible to control the autoplay status (pause/resume) with an external button.
Please refer to this example: https://antoniandre.github.io/vueper-slides/#ex--basic

Cheers.

from vueper-slides.

antoniandre avatar antoniandre commented on May 28, 2024

Closing due to inactivity.
For information, the version 2 has this feature improved.

from vueper-slides.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.