{"id":15020296,"url":"https://github.com/sag1v/react-elastic-carousel","last_synced_at":"2025-04-08T02:42:08.768Z","repository":{"id":32963244,"uuid":"146773142","full_name":"sag1v/react-elastic-carousel","owner":"sag1v","description":"A flexible and responsive carousel component for react https://sag1v.github.io/react-elastic-carousel","archived":false,"fork":false,"pushed_at":"2024-03-31T06:34:31.000Z","size":20176,"stargazers_count":348,"open_issues_count":14,"forks_count":149,"subscribers_count":5,"default_branch":"next","last_synced_at":"2024-10-29T17:38:43.165Z","etag":null,"topics":["carousel","flexible","javascript","react","responsive","styled-components"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sag1v.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2018-08-30T15:55:16.000Z","updated_at":"2024-09-05T04:57:25.000Z","dependencies_parsed_at":"2024-04-16T11:52:55.488Z","dependency_job_id":"05d292b9-64df-43a8-97e2-9467f938c975","html_url":"https://github.com/sag1v/react-elastic-carousel","commit_stats":{"total_commits":261,"total_committers":12,"mean_commits":21.75,"dds":0.5019157088122606,"last_synced_commit":"6f129b51bf39b36d31375e39c66a8f0c4b669076"},"previous_names":[],"tags_count":31,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sag1v%2Freact-elastic-carousel","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sag1v%2Freact-elastic-carousel/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sag1v%2Freact-elastic-carousel/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sag1v%2Freact-elastic-carousel/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sag1v","download_url":"https://codeload.github.com/sag1v/react-elastic-carousel/tar.gz/refs/heads/next","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247767232,"owners_count":20992538,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["carousel","flexible","javascript","react","responsive","styled-components"],"created_at":"2024-09-24T19:54:52.613Z","updated_at":"2025-04-08T02:42:08.751Z","avatar_url":"https://github.com/sag1v.png","language":"JavaScript","funding_links":[],"categories":["Projects by main language"],"sub_categories":["Old Projects"],"readme":"\n# react-elastic-carousel\n\n\u003e A flexible and responsive carousel component for react\n\n[![NPM](https://img.shields.io/npm/v/react-elastic-carousel.svg?style=flat-square)](https://www.npmjs.com/package/react-elastic-carousel) ![npm](https://img.shields.io/npm/dw/react-elastic-carousel?style=flat-square) ![npm bundle size](https://img.shields.io/bundlephobia/min/react-elastic-carousel?style=flat-square)\n\n## Why do we need yet another carousel component\n\n- **Element resize support (true responsiveness)**  \n  Most of the carousel components are responsive to the viewport size, but this is not a real responsive support as we can have an element with a `width:500px` on a `1200px` screen, most carousel component will \"think\" we are on a `1200px` mode because they \"watch\" the view-port's size and not the wrapping element's size.\n  This is the reason why `react-eleastic-carousel` is using the [resize-observer](https://developers.google.com/web/updates/2016/10/resizeobserver) which gives us a true responsive support, not matter on what screen size we are.\n  \n- **RTL (right-to-left) support**  \n  Supporting right-to-left languages requires a full support for right-to-left rendering and animations which is not supported in most of the carousel components out there. also, right-to-left support is [important and should be a standard for most applications](https://www.youtube.com/watch?v=A_3BfONFRUc).\n\n## [Live Demos \u0026 Docs](https://sag1v.github.io/react-elastic-carousel/)\n\n## Install\n\n```bash\nnpm install --save react-elastic-carousel\n```\n\nor\n\n```bash\nyarn add react-elastic-carousel\n```\n\n### Note\n\n`react-elastic-carousel` is using [styled-components](https://github.com/styled-components/styled-components) for styling, this means that you should install it as well:\n\n```bash\nnpm install --save styled-components\n```\n\n## Usage\n\n```jsx\nimport React, { Component } from 'react';\nimport Carousel from 'react-elastic-carousel';\n\nclass App extends Component {\n  state = {\n    items: [\n      {id: 1, title: 'item #1'},\n      {id: 2, title: 'item #2'},\n      {id: 3, title: 'item #3'},\n      {id: 4, title: 'item #4'},\n      {id: 5, title: 'item #5'}\n    ]\n  }\n\n  render () {\n    const { items } = this.state;\n    return (\n      \u003cCarousel\u003e\n        {items.map(item =\u003e \u003cdiv key={item.id}\u003e{item.title}\u003c/div\u003e)}\n      \u003c/Carousel\u003e\n    )\n  }\n}\n```\n\n## Playground\n\n[![Edit react-elastic-carousel](https://codesandbox.io/static/img/play-codesandbox.svg)](https://codesandbox.io/s/21o46mkwnr)\n\n## Development\n\n```console\ngit clone https://github.com/sag1v/react-elastic-carousel.git\ncd react-elastic-carousel\nyarn\n```\n\n### To run the docs site run\n\n```console\nyarn start\n```\n\n### to run a demo Application run\n\n```console\nyarn demo\n```\n\nThe application is running at http://localhost:8888\n\n## License\n\nMIT © [sag1v](https://github.com/sag1v)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsag1v%2Freact-elastic-carousel","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsag1v%2Freact-elastic-carousel","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsag1v%2Freact-elastic-carousel/lists"}