All Projects → amio → Re Carousel

amio / Re Carousel

Minimal carousel component for React.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Re Carousel

Xam.plugin.simpleappintro
Just a nice and simple AppIntro for your Xamarin Forms project
Stars: ✭ 139 (-38.5%)
Mutual labels:  carousel
Zkcarousel
A simple carousel implementation written in Swift
Stars: ✭ 163 (-27.88%)
Mutual labels:  carousel
React Awesome Slider
React content transition slider. Awesome Slider is a 60fps, light weight, performant component that renders an animated set of production ready UI general purpose sliders with fullpage transition support for NextJS and GatsbyJS. 🖥️ 📱
Stars: ✭ 2,343 (+936.73%)
Mutual labels:  carousel
Vue Carousel
Carousel component for Vue.js.
Stars: ✭ 144 (-36.28%)
Mutual labels:  carousel
React Touch Carousel
Ultra-customizable carousel framework for React.JS
Stars: ✭ 158 (-30.09%)
Mutual labels:  carousel
Noodel Js
User interface for responsive, dynamic content trees
Stars: ✭ 173 (-23.45%)
Mutual labels:  carousel
React Responsive Carousel
React.js Responsive Carousel (with Swipe)
Stars: ✭ 1,962 (+768.14%)
Mutual labels:  carousel
React Native Swiper Flatlist
👆 Swiper component implemented with FlatList using Hooks & Typescript + strict automation tests with Detox
Stars: ✭ 217 (-3.98%)
Mutual labels:  carousel
Cardslider
Card Slider is an android component allows you to implement carousel effect with infinite indicators and more features
Stars: ✭ 160 (-29.2%)
Mutual labels:  carousel
Jcarousel
Riding carousels with jQuery.
Stars: ✭ 2,031 (+798.67%)
Mutual labels:  carousel
Pscarouselview
A drop-in carousel view. Most of Apps put it in their first screen.
Stars: ✭ 149 (-34.07%)
Mutual labels:  carousel
Nativescript Carousel
Carousel component for NativeScript (iOS/Angular + TS, Angular, Vue)
Stars: ✭ 156 (-30.97%)
Mutual labels:  carousel
React Elastic Carousel
A flexible and responsive carousel component for react https://sag1v.github.io/react-elastic-carousel
Stars: ✭ 173 (-23.45%)
Mutual labels:  carousel
Svelte Carousel
A super lightweight, super simple Carousel for Svelte 3
Stars: ✭ 144 (-36.28%)
Mutual labels:  carousel
Fizzy Theme
🥤A tasty blogging theme for Ghost.
Stars: ✭ 194 (-14.16%)
Mutual labels:  carousel
Carousel View
CarouselView for android with showing horizontal and vertical, auto scrolling (with pause/resume), slider mode/ carousel mode options
Stars: ✭ 131 (-42.04%)
Mutual labels:  carousel
Glideslider
Glide Image Slider
Stars: ✭ 163 (-27.88%)
Mutual labels:  carousel
Vue Glide
A slider and carousel as vue component on top of the Glide.js
Stars: ✭ 225 (-0.44%)
Mutual labels:  carousel
React Images
🌄 A mobile-friendly, highly customizable, carousel component for displaying media in ReactJS
Stars: ✭ 2,312 (+923.01%)
Mutual labels:  carousel
Slider
Touch swipe image slider/slideshow/gallery/carousel/banner mobile responsive bootstrap
Stars: ✭ 2,046 (+805.31%)
Mutual labels:  carousel

re-carousel npm-version size

Minimal carousel component for React.

demo: https://amio.github.io/re-carousel/

Usage

import Carousel from 're-carousel'

then:

<Carousel auto>
  <div style={{backgroundColor: 'tomato', height: '100%'}}>Frame 1</div>
  <div style={{backgroundColor: 'orange', height: '100%'}}>Frame 2</div>
  <div style={{backgroundColor: 'orchid', height: '100%'}}>Frame 3</div>
</Carousel>

Attributes

All attributes are optional.

  • axis {Enum} 'x' or 'y' ('x' by default)

  • loop {Boolean} true or false (false by default) toggle loop mode.

  • auto {Boolean} true or false (false by default) toggle auto sliding.

  • interval {Number} (4000ms by default) interval for auto sliding.

  • duration {Number} (300ms by default) duration for animation.

  • onTransitionEnd {Function({ prev: HTMLElement, current: HTMLElement, next: HTMLElement})} on frames transition end callback.

  • widgets {Array of ReactClass} Indicator and switcher could be various, so it's not builtin. Here's some example custom widgets (dots indicator, prev/next buttons, keyboard navigation):

    import Carousel from 're-carousel'
    import IndicatorDots from './indicator-dots'
    import Buttons from './buttons'
    
    export default function carousel () {
      return <Carousel loop auto widgets={[IndicatorDots, Buttons]}>
        <div style={{backgroundColor: 'tomato', height: '100%'}}>Frame 1</div>
        <div style={{backgroundColor: 'orange', height: '100%'}}>Frame 2</div>
        <div style={{backgroundColor: 'orchid', height: '100%'}}>Frame 3</div>
      </Carousel>
    }
    
  • frames {Array of ReactElement} If you want to create frames programmatically, use this attribute:

    import Carousel from 're-carousel'
    
    export default function carousel (props) {
      const frames = props.frameArray.map((frame, i) => {
        return <div>Frame {i}</div>
      })
      return <Carousel auto frames={frames}>
        <span>These children element will be appended to Carousel,</span>
        <span>as normal element other than "frame".</span>
      </Carousel>
    }
    
  • className {String} Custom class name.

Contributes

npm run start # start local dev server
npm run build # build lib
npm run test  # run tests

License

MIT © Amio

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].