![]() ![]() You need to replace the value of "video_id" with your actual vimeo video ID. You can embed a vimeo video using the following shortcode in a WordPress post or page: The embedded videos can be viewed on iPhone and iPad too. This plugin can be used to display images, flash, YouTube, Vimeo, iFrame etc in a lightbox overlay. height: (pixel string w/ px suffix) => (pixel integer)Ģ.0.1 minified (latest jQuery only build) (8.514 kb)ġ.1.0 minified (pre-popover, lightbox only) (4.The WordPress Video Lightbox plugin allows you to embed videos on a page using lightbox overlay display.width: (pixel string w/ px suffix) => (pixel integer).backport id, width, and height data-attribute specification to work with IE '#ddd'. VIDEOLIGHTBOX DEPRECATED CODEY: player controls color ("red","white") V: player controls color (hex code default is "#00adef") Y: playback start position in seconds (ex. Y: display title, uploader (0,1) V: display title (0,1) Y: show related videos when playback is finished (0,1) Y: comma-separated list of video IDs to play (ex. Y: display closed captions by default (null,1) Y: auto hide controls after video load (0,1,2) Some of Youtube's options are not listed below, but everything on their params page (as of 3/15/15) is available. Reduces redraws on resizing, lowers accuracy / smoothness of repositioning Number of steps popover should move in on resize events. Time in seconds to wait after closing before unloading Unload video iframe X seconds after it is closed XBorder (String - default="none")Ĭlose icon box border ex: '3px solid #555' Video iframe border ex: '3px solid #555', note: will change aspect ratio of video Preview video on hover, user can click ^ to pin (true,false)īdOpacity (Decimal - default=0.6)įrameColor (String - default="#000")įrameBorder (String - default="none") Open in popover instead of lightbox (true,false) Start playback immediately once the element is clicked (true,false)Īutoclose lightbox / popover once video is complete (true,false) The following is the current list of available options. There are also a number of effect, style, and behavior options that are available. Video Lightning exposes all available basic API options for both Youtube and Vimeo. ![]() Add script where you desire (bottom of body is recommended) Rick Roll with ease (don't pass video id, add rick_roll option to prevent closing)Ĭheck the GH Project Page for demos.Lazy loading of videos prevents slow page load due to video embeds.Preview videos on hover, pin if you want them to stick around.Intelligent popover auto positioning gravitates to page center.Lots of options to customize and beautify your lightboxes.Simple access to all embed API options for both providers.Add the js your project, initialize with target and options and enjoy your video lightbox enhanced element! Features This little plugin bootstraps getting those helpful little videos in place. The main one, and the reason we built it, is for quick video explainers in the appropriate places. Repo name is for posterity, Video Lightning is standalone so jQuery is optional. ![]() Turn any element into a lightbox or popover link for Youtube and Vimeo videos. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |