GithubHelp home page GithubHelp logo

devsgnr / carousel Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 298 KB

Lightweight & Themeable React Carousel with 500+ downloads, I kept it simple with 45 lines of logic controlling the whole package, super light weight for those situation when you just want the functionality.

Home Page: https://www.npmjs.com/package/devsgnr-carousel

License: MIT License

JavaScript 7.34% HTML 10.78% CSS 3.53% TypeScript 78.36%
react react-carousel carousel carousel-component carousel-plugin devsgnr devsgnr-carousel

carousel's People

Contributors

devsgnr avatar

Stargazers

 avatar

Watchers

 avatar  avatar

carousel's Issues

Switch From `Array[index]` to using scroll-snap

In the current package, the images are changed based on the current index of the image array. On the next release, we'll loop over all image URLs and then scroll through them using the scroll snap

  • Loop over all image URLs using a flexbox; with overflow hidden on the parent container
  • Next and previous buttons will now scroll the container x (px) (x being the size of the container) ie. we might listen for the change in the container size and adjust the scroll offset by the current container width, something like document.querySelector(element).addEventListener('event').

The rest is really just testing the solution and see if it works; you have complete autonomy over this

Fix Up Documentation

Right now README.md only shows the props and how to use the package; with examples. Fix the documentation to;

  • Display the Contribution Guidelines (this will be a section in README.md)
  • Feel free to add any other missing information

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.