jakub-jarzabek / duo-gallery

duo-gallery npm package that displays images in main view and in the background

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

duo-gallery

Gallery component that displays images as background as well as in main view window

NPM JavaScript Style Guide

Install

npm install --save duo-gallery

Usage

import React, { Component } from 'react'

import {DuoGallery} from 'duo-gallery'
import 'duo-gallery/dist/index.css'

class Example extends Component {
const arr = [
  {
      id: 0,
      imgSrc: example_img_1,
    },
    {
      id: 1,
      imgSrc: example_img_2,
    },
    {
      id:2,
      imgSrc: example_img_3,
    },
]
  render() {
    return <DuoGallery imageArray={arr} />
  }
}

License

MIT © jakub-jarzabek

Design

Gallery Design By Magdalena Pierzchała (https://www.linkedin.com/in/magdalena-pierzchala/)

About

duo-gallery npm package that displays images in main view and in the background


Languages

Language:JavaScript 49.5%Language:CSS 31.4%Language:HTML 19.1%