Skip to content

Zabamd/pictureSlider-react

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Picture Slider React Component

Recreation of PictureSlider as a React Component

Pre-transition screenshot Transition screenshot

Component Set-up:

import PictureSlider from "./lib/components/picture-slider";
import YourImageName1 from "YourImage";
import YourImageName2 from "YourImage";
import YourImageName3 from "YourImage";

const data = [
  {
    heading: "Visit Alps",
    place: "France",
    comment: "Ce la vie!",
    image: YourImageName1,
  },
  {
    heading: "Visit Alps",
    place: "Italy",
    comment: "Ce la vie!",
    image: YourImageName2,
  },
  {
    heading: "Visit Alps",
    place: "Switzerland",
    comment: "Ce la vie!",
    image: YourImageName3,
  },
];

function App() {
  return (
    <div className="App">
      <PictureSlider picturesData={data} />
    </div>
  );
}

export default App;

Assets:

France-dxiane.jpg Photo by dxiane on Unsplash

Swiss-ricardo-gomez-angel.jpg Photo by Ricardo Gomez Angel on Unsplash

Italy-mattia-bericchia.jpg Photo by Mattia Bericchia on Unsplash

About

Picture Slider/Carusel react component

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published