Created
November 11, 2020 20:14
-
-
Save Athira2199/e04150fe0c86fad6830de6e47d9c66e8 to your computer and use it in GitHub Desktop.
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
import "react-responsive-carousel/lib/styles/carousel.min.css"; | |
import { Carousel }from 'react-responsive-carousel'; | |
import FadeIn from 'react-fade-in'; | |
function Popup() { | |
return( | |
<FadeIn> | |
<Carousel showArrows={true} showThumbs={false} selectedItem={2}> {/* keeping current slide with arrows shown thumbs hidden */} | |
<div> | |
<img src="https://cdn.pixabay.com/photo/2015/04/23/22/00/tree-736885_960_720.jpg" /> | |
<p className="legend">Legend 1</p> | |
</div> | |
<div> | |
<FadeIn> | |
<img src="https://cdn.pixabay.com/photo/2015/04/23/22/00/tree-736885_960_720.jpg" /> | |
<p className="legend">Legend 1</p> | |
</FadeIn> | |
</div> | |
<div> | |
<img src="https://cdn.pixabay.com/photo/2015/04/23/22/00/tree-736885_960_720.jpg" /> | |
<p className="legend">Legend 1</p> | |
</div> | |
</Carousel> | |
</FadeIn> | |
) | |
} | |
export default Popup | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment