Coder Social home page Coder Social logo

Comments (3)

ed-sa-ma avatar ed-sa-ma commented on August 21, 2024 1

The problem is coming from the value passed to autoplay prop. It is supposed to be a number indicating the interval between shifts in milliseconds so when we pass true the interval will be set to run every 1 millisecond producing the crazy spinning.

from svelte-carousel.

michaelcuneo avatar michaelcuneo commented on August 21, 2024

Wow, this was such a simple fix, I can't see how I didn't see this. Judging from the documentation the duration is set with the duration variable. Not a value passed to autoPlay.

from svelte-carousel.

antony avatar antony commented on August 21, 2024

Yeah this probably isn't the most obvious way to handle autoplay. The flip-side is that you can set a duration and then not turn on autoplay, which is also a bit awkward. I'm open to suggestions to improve this API.

from svelte-carousel.

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.