banthagroup / fslightbox

An easy to use vanilla JavaScript plug-in without production dependencies for displaying images, videos, or, through custom sources, anything you want in a clean overlying box.
MIT License
351 stars 30 forks source link

Is it possible to show HTML #72

Closed FrDH closed 5 years ago

FrDH commented 5 years ago

Is it possible to show HTML in the popup? Something like this now gives a "invalid file" message:

<a href="#my-popup">Open popup</a>
<div class="hidden">
   <div id="my-popup">
      Hello world.
   </div>
</div>
piotrzdziarski commented 5 years ago

Unfortunately not, lightbox supports only images, HTML5 and YouTube videos, but I will consider adding that feature.