Video Lightning
Turn any element into a lightbox or popover link for Youtube and Vimeo videos. Includes access to all embed API options for both providers as well as a healthy set of style options. Popovers are intelligently positioned and allow users to preview videos on hover.
Why?
Lots of reasons. The main one, and the reason we built it, is for quick video explainers in the appropriate places. This little plugin bootstraps getting those helpful little videos in place.
How?
Simple. Add the js your project, initialize with target and options and enjoy your video lightbox enhanced element!
Features
- Simple access to all embed API options for both providers
- Lots of options to customize and beautify your lightboxes
- Intelligent popover auto positioning gravitates to page center
- Preview videos on hover, pin if you want them to stick around
- Lazy loading of videos prevents slow page load due to video embeds
- Rick Roll with ease (don't pass video id, add rickRoll option to prevent closing)
Demos
Those little purple links scattered throughout the page are the demos.
Docs
Docs can be found at the repo.
Contributing
- Fork it
- Create your feature branch (git checkout -b my-new-feature)
- Commit your changes (git commit -am 'Added some feature')
- Push to the branch (git push origin my-new-feature)
- Create new Pull Request
author: Andrew Carpenter, on behalf of the musocrat team