Skip to content

Allows lightbox to use custom components (I'm implementing andrew-giangrant's code)

Notifications You must be signed in to change notification settings

Codypinto23/lightbox-with-video

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

React-Lightbox-With-Video

This is library uses the base library, React Lightbox, along with some code from andrew-giangrant to allow Lightbox to use custom items (PDFs, videos, etc..).

This repo shows how to integrate the code into your system, without have to do a pull request on the original library

Demo

Edit heuristic-khorana-gh4hn

Change this code to update images/videos shown

const images = [
      <video
        autoPlay="true"
        style={{ width: "-webkit-fill-available" }}
        src={
          "https://guidex-image-storage.nyc3.digitaloceanspaces.com/videos/missouri-web-large.mp4"
        }
      />,

      <div
        style={{
          display: "flex",
          width: "-webkit-fill-available",
          height: "-webkit-fill-available"
        }}
      >
        <img
          style={{ margin: "auto" }}
          src={
            "https://guidex-image-storage.nyc3.digitaloceanspaces.com/general-photos/BrownEyeBW.jpg"
          }
        />
      </div>
    ];


About

Allows lightbox to use custom components (I'm implementing andrew-giangrant's code)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published