4

Set up a test page to try out owl.carousel.2.0.0-beta.2.4 and it works nicely in IE but in Chrome (Win10) it has issues with images disappearing when you click and drag. I can't tell that there's any specific method to which ones disappear. When you stop dragging they pop back in.

Had this issue on two different Win10 systems. It does it to a much lesser degree on my HTC phone with Chrome.

The Demos don't have this issue on the systems I tested on; they drag smoothly but I believe they are only text without images.

Did I set up something incorrectly? Is it using some fall back that doesn't work well in Chrome?

http://www.crystalvalleycomputers.com/dev/atlasnew/owltest.php

<html>
<head>

<link rel="stylesheet" href="owl-carousel/assets/owl.carousel.css">
<!-- <link rel="stylesheet" href="owlcarousel/owl.theme.default.min.css"> -->

    <!--  jQuery 1.7+  -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js">
</script> 
    <!-- Include js plugin -->
    <script src="owl-carousel/owl.carousel.min.js"></script>
</head>
<body>

<script>
$(document).ready(function(){
  $(".owl-carousel").owlCarousel({
    nav:true,
    center:true,
    autoplay:true,
    autoplayTimeout:3000,
    margin:20,
    loop:true,
    items:6
});
});
</script>

<div style="width:1200px;border:2px solid red;">
<div id="owl-example" class="owl-carousel">
<div><img src="images/Services/Tech_Manage.png" alt="Technology Management"></div>
<div><a href="index.php"><img src="images/Services/POS.png" alt="Point of Sale Systems"><br>is a link</a></div>
<div><img src="images/Services/Phone.png" alt="Commercial Phone Systems"></div>
<div><img src="images/Services/Web.png" alt="Web Design"></div>
<div><img src="images/Services/CVC.png" alt="Crystal Valley Computers"></div>
<div><img src="images/Services/Video.png" alt="Video Surveillance"></div>
</div>
</div>

<script>
$(document).ready(function(){
  $(".owl-carousel2").owlCarousel({
    rtl:true,
    autoplay:true,
    autoplayTimeout:3000,
    margin:40,
    loop:true,
    items:1
});
});
</script>

<div style="width:50%;border:2px solid green;">
<div id="owl-example2" class="owl-carousel2">
<div><img src="images/Services/Tech_Manage.png" alt="Technology Management"></div>
<div><a href="index.php"><img src="images/Services/POS.png" alt="Point of Sale Systems" style="width:100px;height:100px;"><br>different size</a></div>
<div><img src="images/Services/Phone.png" alt="Commercial Phone Systems"></div>
<div><img src="images/Services/Web.png" alt="Web Design"></div>
<div><img src="images/Services/CVC.png" alt="Crystal Valley Computers"></div>
<div><img src="images/Services/Video.png" alt="Video Surveillance"></div>
</div>
</div>


</body>
</html>
Joe Ingold
  • 41
  • 1
  • 5
  • 1
    plz comment -webkit-transform-style: preserve-3d; css property in .owl-carousel .owl-item img selector in owl.carousel.css at line no 131 and 172 – Ashish Mehta Oct 28 '15 at 13:40

3 Answers3

2

Ashish Mehta's comment did the trick for me.

So, the solution is to comment the property -webkit-transform-style:preserve-3d in the class .owl-carousel .owl-item img that's on the file owl.carousel.min.css

Community
  • 1
  • 1
  • You just made my friday amazing. I can go into the weekend with a sense of accomplishment and images being immediately visible upon scrolling / dragging – DontFretBrett Jan 13 '17 at 18:42
0

In my case, the images become visible after I scroll the page. Thus, I wrote this workaround which apparently fixed my problem.

$carousel.owlCarousel({
  dots: true,
  items: 2,
  onTranslated: scrollFix
});

function scrollFix(){
  $(window).scroll();
}

Here, onTranslated is an owl Callback which is triggered after the carousel is scrolled/dragged.

And in the callback, I call a simple function scrollFix which then triggers the window scroll event, thus making the images visible.

Hope this helps.

Gibin Ealias
  • 2,751
  • 5
  • 21
  • 39
-1

Solution for hidden image during dragging owl carousel. Comment the property in the class

 /*-webkit-backface-visibility: hidden;*/

that's on the file owl.carousel.css

.owl-carousel .owl-item{
 position: relative;
  min-height: 1px;
  float: left;
  /*-webkit-backface-visibility: hidden;*/
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;

}