App.jsx
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 |
import ImageGallery from "react-image-gallery"; import "react-image-gallery/styles/css/image-gallery.css"; import img1 from "./assets/1.jpeg"; import img2 from "./assets/2.jpeg"; import img3 from "./assets/3.jpeg"; import img4 from "./assets/4.jpeg"; import img5 from "./assets/5.jpeg"; import img6 from "./assets/6.jpeg"; const images = [ { original: img1, thumbnail: img1, }, { original: img2, thumbnail: img2, }, { original: img3, thumbnail: img3, }, { original: img4, thumbnail: img4, }, { original: img5, thumbnail: img5, }, { original: img6, thumbnail: img6, }, ]; function App() { return ( <ImageGallery thumbnailPosition="top" showBullets={true} showIndex={true} autoPlay={true} items={images} slideDuration={1000} slideInterval={1000} /> ); } export default App; |