Tiny jQuery Youtube/Vimeo Video Lightbox Plugin - Lightbox Video

File Size: 39.2 KB
Views Total: 27432
Last Update:
Publish Date:
Official Website: Go to website
License: MIT
Tiny jQuery Youtube/Vimeo Video Lightbox Plugin - Lightbox Video

Lightbox Video is a super tiny jQuery plugin to display Youtube or Vimeo videos in a nice-looking lightbox interface.

How to use it:

1. Add the jQuery library and the jQuery lightbox video plugin in the page.

<link rel="stylesheet" type="text/css" href="css/lightbox.min.css">
<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<script type="text/javascript" src="js/lightbox.min.js"></script>

2. Create a link with CSS class of 'link-lightbox' to open a video lightbox. Use data-videoid to specify the video ID got from Youtube or Vimeo.

<a href="#" class="link-lightbox" data-videoid="fCYLShRKo3w" data-videosite="youtube">Youtube</a><br>
<a href="#" class="link-lightbox" data-videoid="97971369" data-videosite="vimeo">Vimeo</a>

Change log:


This awesome jQuery plugin is developed by pedromarcelojava. For more Advanced Usages, please check the demo page or visit the official website.