Code Monkey home page Code Monkey logo

Comments (5)

straydogstudio avatar straydogstudio commented on June 26, 2024

@prashantsani It is an infinite loop. At least, if it isn't by some definition let me know!

from film_roll.

prashantsani avatar prashantsani commented on June 26, 2024

Yes! The infinite loop does not work When Carousel width is more than all carousels combined

Eg. http://codepen.io/Prashantsani/pen/emoXGO

Thanks :)

from film_roll.

straydogstudio avatar straydogstudio commented on June 26, 2024

Ah. Right. This has to do with the visual results. When it is smaller than the carousel width and the rotate happens you see an item disappear from one side and appear on the other. (You can still see this when the carousel is only a little bit wider than the container.) It is a jarring appearance. I may provide an option force rotate.

Perhaps it should do something else. If the width is smaller, the shuttle could just move back and forth to center the selected item? I'm not sure if it would appear ok. It would deliberately be off center every time.

from film_roll.

prashantsani avatar prashantsani commented on June 26, 2024

One issue this forced infinite/endless loop will solve is this ---> #35

Since There will be forced endless loop, the "film_roll:moved" will always trigger :)

from film_roll.

straydogstudio avatar straydogstudio commented on June 26, 2024

Fixed with 0.1.16. It moves back and forth for a small carousel. If you want it to rotate anyway (you will see things disappear and appear) use the force_rotate option.

from film_roll.

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.