Created
September 14, 2016 10:36
-
-
Save leandrowd/a3871b733b1b1a712b5f1ab3ccce592d to your computer and use it in GitHub Desktop.
carousel-videos
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 DemoCarouselVideos = React.createClass({ | |
render() { | |
return ( | |
<Carousel showThumbs={false}> | |
<div> | |
<iframe width="1600" height="900" src="https://www.youtube.com/embed/n0F6hSpxaFc" /> | |
</div> | |
<div> | |
<iframe width="1600" height="900" src="https://www.youtube.com/embed/C-y70ZOSzE0" /> | |
</div> | |
<div> | |
<iframe width="1600" height="900" src="https://www.youtube.com/embed/IyTv_SR2uUo" /> | |
</div> | |
<div> | |
<iframe width="1600" height="900" src="https://www.youtube.com/embed/3zrfGHQd4Bo" /> | |
</div> | |
</Carousel> | |
); | |
} | |
}); | |
ReactDOM.render(<DemoCarouselVideos />, document.querySelector('.demo-carousel-videos')); | |
// Don't forget to include the css in your page | |
// <link rel="stylesheet" href="carousel.css"/> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment