Skip to content

k-zakhariy/embed-video

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This script allows you to Embed Youtube and Vimeo thumbs, and when click on element , it put Video in <iframe> tag

Instalation

$ npm i
$ bower install

For dev release:

$ gulp && gulp watch

For production release:

$ gulp --production

Examples

See in example folder

https://k-zakhariy.github.io/embed-video/examples/

Usage

<div class="VideoEmbed" data-url="https://www.youtube.com/watch?v=6FeJySGOqhA"></div>
<div class="VideoEmbed" data-url="https://www.youtube.com/watch?v=owLDqhB90gk"></div>
<div class="VideoEmbed" data-url="https://vimeo.com/181553695"></div>
$('.VideoEmbed').each(function (i, el) {
    var obj = new VideoEmbed($(this));
});

Then you will see thumbnails

About

Embed Youtube and Vimeo with thumbnails

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published