Git Product home page Git Product logo

Comments (5)

NaotoshiFujita avatar NaotoshiFujita commented on July 24, 2024

You are using old versions.

image

from splide-extension-auto-scroll.

Rados51 avatar Rados51 commented on July 24, 2024

@NaotoshiFujita

HI, I have updated CodeBox to the latest versions for both packages, the issue still persist.

from splide-extension-auto-scroll.

NaotoshiFujita avatar NaotoshiFujita commented on July 24, 2024

Ah, if you want to start it from the end slide on load, you need to specify the start index, since the initial index is 0. For example:
https://codesandbox.io/s/splide-autoscroll-bug-forked-3l397r?file=/src/index.js

from splide-extension-auto-scroll.

Rados51 avatar Rados51 commented on July 24, 2024

@NaotoshiFujita I see. Is this then desired effect as with loop type, it does not needstart index? Would it be then possible to add option to use start: -1 as some sliders have dynamic slides length, so it would be easier to use -1 as last index one? Thanks.

from splide-extension-auto-scroll.

NaotoshiFujita avatar NaotoshiFujita commented on July 24, 2024

Is this then desired effect as with loop type, it does not need start index?

I don't know. It depends on what you want to achieve.

Would it be then possible to add option to use start: -1 as some sliders have dynamic slides length, so it would be easier to use -1 as last index one?

I don't think so, since negative indices are used for clones internally. But you can easily get the last index by querySelectorAll.

from splide-extension-auto-scroll.

Related Issues (12)

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.