Git Product home page Git Product logo

simple-carousel's People

Contributors

fjsc avatar hughxdev avatar spachore avatar vugarrio avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

simple-carousel's Issues

Auto start/stop

I would like to include a start/stop feature with this element. I assumed that the auto & infinite-loop properties could be used to data bind; however when setting each to 'false', my element continues the loop. Im not sure if this is a bug or if I have misread the API. Thanks

selected item in attached callback sets to 'undefined' when carousel-slides are included using dom-repeat template

I am using this component for showing dynamic content using dom-repeat template. It might happen that the imageList is blank for a short duration initially.

      <simple-carousel auto infinite-loop>
        <template is="dom-repeat" items="{{imageList}}" as="imageItem">
          <carousel-slide>
                 <img src="{{imageItem.imageURL}}">
          </carousel-slide>
        </template>
      </simple-carousel>

As the imageList is empty, the component does not get any slide to set as 'selected' item during attached callback. And the carousel fails to show any items even after the imageList gets filled with items, as the next() function does not have valid selected item.

This case of 'no-slides-initially' should be handled. The next() function should set the selected item, if it is 'undefined'.

deferred loading of images

it would be absolutely fantastic to have iron-list like deferred loading of images for carousels with many images

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.