felixhagspiel / jsOnlyLightbox

Responsive Lightbox in plain JS. No need for jQuery.
MIT License
157 stars 49 forks source link

Add video support #26

Closed pachacamac closed 8 years ago

pachacamac commented 8 years ago

I have images and videos (with automatically created thumbnail GIFs) in my current gallery. I am adding your lightbox as an optional addon and would like to keep the videos working. Any chance/idea how to do that? I'm happy to help too.

felixhagspiel commented 8 years ago

well first of all there has to be some sort of detection if the content which should be loaded is an image or html content. then the next question is where that content comes from, if you provide ID`s which link to hidden containers which are then loaded, or if you load them dynamically. Unfortunately I have no time at all atm, but if you provide a pull-requests or if you got any questions I will try to help. there is also already an issue here: https://github.com/felixhagspiel/jsOnlyLightbox/issues/7