javascript - OwlCarousel Youtube video not showing -


i have youtube video want shown doesn't show @ all. didn't add height or width video because want keep responsive.

http://www.owlcarousel.owlgraphic.com/demos/video.html

<div id="carousel" class="owl-carousel">   <div>     <a class="owl-video" href="https://www.youtube.com/watch?v=oy9gfaq4x4w"></a>   </div>   <div><img src="http://cdn.playbuzz.com/cdn/7a7a5814-ed79-410c-b748-db6a24f73f0b/4d71c010-f930-4334-ba62-79d87a7ddef4.jpg"></div>  </div> 

http://jsfiddle.net/nlz17fcv/12/

adding video using a tag seems not working.

<div>     <a class="owl-video" href="https://www.youtube.com/watch?v=oy9gfaq4x4w"></a> </div> 

instead can replace iframe embed video want this.

<div class="item-video">    <iframe width="420" height="315" src="https://www.youtube.com/embed/oy9gfaq4x4w">    </iframe> </div> 

in addition to, i've removed transitionstyle: "fade" because property blocks carrousel transition.

you can check on demo

hope helps


Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

ruby on rails - Seeing duplicate requests handled with Unicorn -