Git Product home page Git Product logo

Comments (9)

9bitStudios avatar 9bitStudios commented on August 13, 2024

Hi connman...As of right now, only one item per scroll is supported. A multiplier effect could be added to the itemsWidth variable in the animate functions inside of the scrollLeft and scrollRight functions in the plugin, but I don't believe that all of the cloned items for the infinite scoll effect will be present on either side of the scroll if you scroll by too many items at a time

from flexisel.

connman avatar connman commented on August 13, 2024

Sweet! Tested, it works! Thanks a lot! =D

from flexisel.

9bitStudios avatar 9bitStudios commented on August 13, 2024

Great. Glad it is working out for you.

from flexisel.

PeterPan73 avatar PeterPan73 commented on August 13, 2024

Can you explain a little more precisely exactly where you need to make changes to be able to scroll through display four items

from flexisel.

9bitStudios avatar 9bitStudios commented on August 13, 2024

Well, inside the scrollLeft and scrollRight functions in the plugin there's a place where the current widths of the items are calculated...1 item, the width of how much to scroll by.

itemsWidth = (innerWidth) / itemsVisible;

So after this you'd want to do something like

itemsWidth = itemsWidth * 4;

to change the multiplier to scroll by 4 items.

After this though you'd also have to append more items to the front of the back of the list of items after the scroll animation is complete if you wanted to keep the infinite scroll effect.

At the end of the day though, this behavior is not really supported in this plugin. I do know that what you are looking for is supported in other carousel plugins like FlexSlider or Slick

from flexisel.

abhishekv89 avatar abhishekv89 commented on August 13, 2024

itemsWidth = itemsWidth * 4;
If you observe closely, it shows that it is sliding 4 items, but the result is one slide.
Observe closely, even though it animates as 4 it only slides 1 item per click.

from flexisel.

9bitStudios avatar 9bitStudios commented on August 13, 2024

I'll have to take a deeper look at this when I get a chance, but I'll take you're word for it that you're probably correct. Because the slider was not really designed for this from the outset, truly supporting this behavior properly would require a fairly substantial refactor of some of the code.

from flexisel.

abhishekv89 avatar abhishekv89 commented on August 13, 2024

It'll be grateful if you could post an update when done.

from flexisel.

9bitStudios avatar 9bitStudios commented on August 13, 2024

Please note that this is now supported with the release of version 2.0.0.

from flexisel.

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.