owl-carousel-2

Owlcarousel 2 - elements not visible while translate3d()

孤街醉人 提交于 2021-01-28 15:24:33
问题 I'm using Owlcarousel 2 for sliding over multiple divs, the problem is that inside each "sliding-page" there are some elements positioned as absolute (relative not working neither), and they are not visible while animating, they just "blick-in" when the animation is finished. This is what my html looks like <div id="owl-example" class="owl-carousel width-height-100"> <div class="advert-bg lazyOwl owl-lazy" data-src="ad_preview_new.png"> <div class="col-sm-6 col-md-7 col-lg-8 col-elg-9 pull

Owlcarousel 2 - elements not visible while translate3d()

旧街凉风 提交于 2021-01-28 15:13:58
问题 I'm using Owlcarousel 2 for sliding over multiple divs, the problem is that inside each "sliding-page" there are some elements positioned as absolute (relative not working neither), and they are not visible while animating, they just "blick-in" when the animation is finished. This is what my html looks like <div id="owl-example" class="owl-carousel width-height-100"> <div class="advert-bg lazyOwl owl-lazy" data-src="ad_preview_new.png"> <div class="col-sm-6 col-md-7 col-lg-8 col-elg-9 pull

Owlcarousel 2 - elements not visible while translate3d()

♀尐吖头ヾ 提交于 2021-01-28 15:06:24
问题 I'm using Owlcarousel 2 for sliding over multiple divs, the problem is that inside each "sliding-page" there are some elements positioned as absolute (relative not working neither), and they are not visible while animating, they just "blick-in" when the animation is finished. This is what my html looks like <div id="owl-example" class="owl-carousel width-height-100"> <div class="advert-bg lazyOwl owl-lazy" data-src="ad_preview_new.png"> <div class="col-sm-6 col-md-7 col-lg-8 col-elg-9 pull

Owlcarousel 2 - elements not visible while translate3d()

≯℡__Kan透↙ 提交于 2021-01-28 15:05:48
问题 I'm using Owlcarousel 2 for sliding over multiple divs, the problem is that inside each "sliding-page" there are some elements positioned as absolute (relative not working neither), and they are not visible while animating, they just "blick-in" when the animation is finished. This is what my html looks like <div id="owl-example" class="owl-carousel width-height-100"> <div class="advert-bg lazyOwl owl-lazy" data-src="ad_preview_new.png"> <div class="col-sm-6 col-md-7 col-lg-8 col-elg-9 pull

Replace current items using Owl Carousel 2

旧巷老猫 提交于 2020-03-03 06:20:02
问题 How is it possible to replace/rebuild owl carousel items with a new one? Description In many cases, like when you are getting new data from a database you would to add new data in your carousel, but in this example I try to replace all items with a new one. $('.owl-carousel').owlCarousel({ loop:true, margin:10, nav:true }); <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/OwlCarousel2/2.2.1/owl

Replace current items using Owl Carousel 2

血红的双手。 提交于 2020-03-03 06:19:05
问题 How is it possible to replace/rebuild owl carousel items with a new one? Description In many cases, like when you are getting new data from a database you would to add new data in your carousel, but in this example I try to replace all items with a new one. $('.owl-carousel').owlCarousel({ loop:true, margin:10, nav:true }); <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/OwlCarousel2/2.2.1/owl

Replace current items using Owl Carousel 2

最后都变了- 提交于 2020-03-03 06:17:04
问题 How is it possible to replace/rebuild owl carousel items with a new one? Description In many cases, like when you are getting new data from a database you would to add new data in your carousel, but in this example I try to replace all items with a new one. $('.owl-carousel').owlCarousel({ loop:true, margin:10, nav:true }); <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/OwlCarousel2/2.2.1/owl

Owl carousel 2 cloned item click events not firing

可紊 提交于 2020-01-30 08:24:25
问题 I'm currently using Owl Carousel 2.0.0-beta.2.4 in development to keep the carousel centered and loop the items which works nicely. For some reason the cloned items that Owl generates when setting loop: true doesn't seem to fire on click. You will see in the example I've put together below that every other item alerts the click when fired but if the item has been cloned it doesn't seem to register the click event. JSFiddle HTML: <div id="multiple-carousel" class="carousel-style owl-carousel">

Z-Index a Div (0) Behind its Sibling (1) while Keeping Children Above (2) | OwlCarousel Navigation Arrows Only on Hover

空扰寡人 提交于 2020-01-25 08:22:48
问题 I am using owl carousel and trying to modify the .owl-nav buttons so that they appear on the sides of the carousel only if a user is hovering over the slider. I've written the following CSS but the problem is that .owl-nav is blocking the slider items and preventing users from clicking on them. Is there a way for me to move .owl-nav behind .owl-staging-outer while still being able to show the nav menu items only when the user hovers over the slider? .wrapper { position: relative; } .owl-nav {

OwlCarousel preload image in background

ぐ巨炮叔叔 提交于 2020-01-06 04:14:06
问题 I'm using owlcarousel 2 with lazyload options true, i want to start preloading of next slides images in background while user seeing first image of carousel so user doesn't see the loader and directly see the loaded image in next slides here is my html code <div class="inner-gallery"> <div id="inner-gallery"> <div class="gallery-item"> <div class="gallery-item2"> <img class="lazyOwl" data-src="<?php echo $image[0]; ?>" alt=""/> </div> </div> </div> </div> here is my javascript code $(document