react-bigpicture
React Lightbox Component based on BigPicture.js / Video and Image Demo - CodeSandbox
npm install react-bigpicture --save
OR
yarn add react-bigpicture
Props
<BigPicture src='http://lorempixel.com/800/600/sports/1' caption="Sport picture" type="image" // "video", "youtube", "vimeo", "iframe", "audio" noLoader> <img src="http://lorempixel.com/400/200/sports/1" /></BigPicture>
Use Callbacks
<BigPicture src='http://lorempixel.com/800/600/sports/1' caption="Sport picture" type="image" // "video", "youtube", "vimeo", "iframe", "audio" noLoader animationStart=callbackFn animationEnd=callbackFn onClose=callbackFn onError=callbackFn onChangeImage=callbackFn> <img src="http://lorempixel.com/400/200/sports/1" /></BigPicture>
Example
;;; ;
BigPicture by @henrygd https://github.com/henrygd/bigpicture