Youtube Video Carousel OWL Tube - Download Create A Youtube Video Carousel With OWL Carousel Plugin

Download Create A Youtube Video Carousel With OWL Carousel Plugin

Posted on

This time I will share jQuery Plugin and tutorial about Create A Youtube Video Carousel With OWL Carousel Plugin, hope it will help you in programming stack.

Youtube Video Carousel OWL Tube - Download Create A Youtube Video Carousel With OWL Carousel Plugin
File Size: 185 KB
Views Total: 12080
Last Update:
Publish Date:
Official Website: Go to website
License: MIT
   

The jQuery OWL Tube plugin makes use of the popular Owl Carousel 2 plugin to create a responsive, configurable Youtube playlist carousel from a group of Youtube videos you specify.

Licenced under the GPL 3.

How to use it:

1. Load the necessary jQuery library and Owl Carousel plugin in the document.

1 <!-- Stylesheet -->
2 <link rel="stylesheet" href="/path/to/owl.carousel.min.css">
3 <link rel="stylesheet" href="/path/to/owl.theme.default.min.css">
4 <link rel="stylesheet" href="/path/to/owl.theme.green.min.css">
5 <!-- JavaScript -->
6 <script src="/path/to/jquery-3.3.1.min.js"></script>
7 <script src="/path/to/owl.carousel.min.js"></script>

2. Download and load the minified version of the jQuery OWL Tube plugin after jQuery.

1 <script src="/dist/assets/js/owl-tube.min.js"></script>

3. Insert Youtube videos to the carousel following the markup structure as these:

01 <div class="owl-carousel owl-theme">
02   <div class="item">
03       <iframe type="text/html" width="720" height="405"
05       frameborder="0" allowfullscreen></iframe>
06   </div>
07   <div class="item">
08       <iframe type="text/html" width="720" height="405"
10       frameborder="0" allowfullscreen></iframe>
11   </div>
12   <div class="item">
13       <iframe type="text/html" width="720" height="405"
15       frameborder="0" allowfullscreen></iframe>
16   </div>
17  
18   <div class="item">
19       <iframe type="text/html" width="720" height="405"
21       frameborder="0" allowfullscreen></iframe>
22   </div>
23 </div>

4. Initialize the Youtube playlist carousel and done.

01 var carousel = $('.owl-carousel').owlCarousel({
02  
03     // more options:
04     // https://www.jqueryscript.net/slider/Fully-<a href="https://www.jqueryscript.net/tags.php?/Responsive/">Responsive</a>-Mobile-friendly-jQuery-Carousel-Plugin-Owl-Carousel-2.html
05     items:1,
06     loop:1,
07     nav:1,
08     dots:1
09  
10   });
11    
12  window.owlTube = $(carousel).owlTube();

5. Available configurations for the Youtube playlist carousel.

01 $(carousel).owlTube({
02   width:640,
03   height:340,
04   autoplay:1, // 1 = autoplay
05   loop:1,
06   controls: 1,
07   iv_load_policy:3,
08   modestbranding:1,
09   rel:0,
10   showinfo:0
11 });

About Author:

Author: kia

Website: https://dialogo.digital/public/projects/owl-tube/example/


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

source : jquery.net