All Projects → sag1v → React Elastic Carousel

sag1v / React Elastic Carousel

Licence: mit
A flexible and responsive carousel component for react https://sag1v.github.io/react-elastic-carousel

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to React Elastic Carousel

Styled-Responsive-Media-Queries
Responsive Media Queries for Emotion styled or styled-components — Standard size from Chrome DevTools.
Stars: ✭ 33 (-80.92%)
Mutual labels:  styled-components, responsive
Noodel Js
User interface for responsive, dynamic content trees
Stars: ✭ 173 (+0%)
Mutual labels:  carousel, responsive
global-upvote
A progressive web app that provides top voted stories across the web, summarized and updated every sixty seconds.
Stars: ✭ 25 (-85.55%)
Mutual labels:  styled-components, responsive
Grid
This package has moved and renamed
Stars: ✭ 2,079 (+1101.73%)
Mutual labels:  styled-components, responsive
Angular2 Carousel
An lightweight , touchable and responsive library to create a carousel for angular 2 / 4 / 5
Stars: ✭ 26 (-84.97%)
Mutual labels:  carousel, responsive
React Images
🌄 A mobile-friendly, highly customizable, carousel component for displaying media in ReactJS
Stars: ✭ 2,312 (+1236.42%)
Mutual labels:  carousel, responsive
nglp-angular-material-landing-page
NGLP is an Angular Material Landing Page.
Stars: ✭ 32 (-81.5%)
Mutual labels:  responsive, carousel
Slider
Touch swipe image slider/slideshow/gallery/carousel/banner mobile responsive bootstrap
Stars: ✭ 2,046 (+1082.66%)
Mutual labels:  carousel, responsive
Styled System
⬢ Style props for rapid UI development
Stars: ✭ 7,126 (+4019.08%)
Mutual labels:  styled-components, responsive
Fitty
✨ Makes text fit perfectly
Stars: ✭ 3,321 (+1819.65%)
Mutual labels:  flexible, responsive
react-gallery-carousel
Mobile-friendly gallery carousel 🎠 with server side rendering, lazy loading, fullscreen, thumbnails, touch, mouse emulation, RTL, keyboard navigation and customisations.
Stars: ✭ 178 (+2.89%)
Mutual labels:  responsive, carousel
React Items Carousel
Items Carousel Built with react-motion and styled-components
Stars: ✭ 150 (-13.29%)
Mutual labels:  carousel, responsive
react-styled-carousel
React styled components carousel or slide show. No external css import is required.
Stars: ✭ 42 (-75.72%)
Mutual labels:  styled-components, carousel
React Flexa
Responsive React Flexbox (CSS Flexible Box Layout Module) grid system based heavily on the standard CSS API.
Stars: ✭ 120 (-30.64%)
Mutual labels:  styled-components, responsive
React Awesome Styled Grid
A responsive 8-point grid system layout for React using styled-components
Stars: ✭ 157 (-9.25%)
Mutual labels:  styled-components, responsive
Vue Toasted
🖖 Responsive Touch Compatible Toast plugin for VueJS 2+
Stars: ✭ 2,091 (+1108.67%)
Mutual labels:  responsive
Jekyll Theme Simple Texture
A gem-based responsive simple texture styled Jekyll theme.
Stars: ✭ 168 (-2.89%)
Mutual labels:  responsive
Gatsby Theme Superstylin
💅 A Gatsby Theme with styled-components
Stars: ✭ 165 (-4.62%)
Mutual labels:  styled-components
Angular Grid Layout
Responsive grid with draggable and resizable items for Angular applications.
Stars: ✭ 163 (-5.78%)
Mutual labels:  responsive
Fiber
⚡️ Express inspired web framework written in Go
Stars: ✭ 17,334 (+9919.65%)
Mutual labels:  flexible

react-elastic-carousel

A flexible and responsive carousel component for react

NPM npm npm bundle size

Why do we need yet another carousel component

  • Element resize support (true responsiveness)
    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. This is the reason why react-eleastic-carousel is using the resize-observer which gives us a true responsive support, not matter on what screen size we are.

  • RTL (right-to-left) support
    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.

Live Demos & Docs

Install

npm install --save react-elastic-carousel

or

yarn add react-elastic-carousel

Note

react-elastic-carousel is using styled-components for styling, this means that you should install it as well:

npm install --save styled-components

Usage

import React, { Component } from 'react';
import Carousel from 'react-elastic-carousel';

class App extends Component {
  state = {
    items: [
      {id: 1, title: 'item #1'},
      {id: 2, title: 'item #2'},
      {id: 3, title: 'item #3'},
      {id: 4, title: 'item #4'},
      {id: 5, title: 'item #5'}
    ]
  }

  render () {
    const { items } = this.state;
    return (
      <Carousel>
        {items.map(item => <div key={item.id}>{item.title}</div>)}
      </Carousel>
    )
  }
}

Playground

Edit react-elastic-carousel

Development

git clone https://github.com/sag1v/react-elastic-carousel.git
cd react-elastic-carousel
yarn

To run the docs site run

yarn start

to run a demo Application run

yarn demo

The application is running at http://localhost:8888

License

MIT © sag1v

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].