Last active
January 7, 2016 10:20
-
-
Save leandrowd/fcf3dcba5c12386c7d91 to your computer and use it in GitHub Desktop.
clean-carousel
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// https://www.npmjs.com/package/react-responsive-carousel | |
var React = require('react'); | |
var ReactDOM = require('react-dom'); | |
var Carousel = require('react-responsive-carousel').Carousel; | |
var DemoCleanCarousel = React.createClass({ | |
render() { | |
return ( | |
<Carousel showThumbs={false} showArrows={false} showStatus={false} onChange={onChange} onClickItem={onClickItem}> | |
<div> | |
<img src="assets/1.jpeg" /> | |
<p className="legend">Legend 1</p> | |
</div> | |
<div> | |
<img src="assets/2.jpeg" /> | |
<p className="legend">Legend 2</p> | |
</div> | |
<div> | |
<img src="assets/3.jpeg" /> | |
<p className="legend">Legend 3</p> | |
</div> | |
<div> | |
<img src="assets/4.jpeg" /> | |
<p className="legend">Legend 4</p> | |
</div> | |
<div> | |
<img src="assets/5.jpeg" /> | |
<p className="legend">Legend 5</p> | |
</div> | |
<div> | |
<img src="assets/6.jpeg" /> | |
<p className="legend">Legend 6</p> | |
</div> | |
</Carousel> | |
); | |
} | |
}); | |
ReactDOM.render(<DemoCleanCarousel />, document.querySelector('.demo-clean-carousel')); | |
// Don't forget to include the css in your page | |
// <link rel="stylesheet" href="carousel.css"/> | |
// Begin DemoSliderControls |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment