ReactAwesome Slider

<AwesomeSlider/>~7KB compressed

React Awesome Slider is a 60fps, extendable, highly customisable, production ready javascript react component that renders an animated set of UI gallery sliders.

Autoplay HOC

Autoplay Component

Autoplay HOC

For this example we're importing the Autplay HOC that can be imported from de HOC folder. You can checkout it's full source here.

.jsx

import AutoplaySlider from 'react-awesome-slider/hoc/autoplay'; import AwesomeSliderStyles from 'react-awesome-slider/src/styled/fold-out-animation.scss'; const Slider = ( <AutoplaySlider play={true} cancelOnInteraction={false} interval={6000} cssModule={AwesomeSliderStyles} > <div data-src="/path/to/image-0.jpg" /> <div data-src="/path/to/image-1.jpg" /> <div data-src="/path/to/image-2.jpg" /> <div data-src="/path/to/image-3.jpg" /> </AutoplaySlider> );

Customisation

Basic customization through the component's props and CSS custom-properties.

Source

Component's global props

    • true
    • true
    • false

CSS Custom Properties

    General

    • 60%
    • 525ms

    Arrows

    • 4px
    • 0px
    • 40px
    • #26456f

    Controls

    • 10%
    • 25%
    • transparent
    • #2d5182
    • #26456f

    Loader Bar

    • #851515
    • 6px
Avatar