$('.lazy').Lazy({
appendScroll: $('.wrapper-scroll'),
effect: 'fadeIn',
effectTime: 3000,
threshold: 0
});
*, *::before, *::after {
box-sizing: inherit;
}
.lazy {
height: 400px;
}
.wrapper-scroll {
overflow-x: scroll;
position: relative;
display: -webkit-box;
}
.content-scroll {
width: -webkit-max-content;
flex-grow: 0;
flex-shrink: 0;
flex-basis: auto;
}
.card-3d figure {
cursor: pointer;
}
.card-3d .front {
z-index: 1;
}
.list-carousel-item-sx {
display: inline-block;
position: relative;
overflow: hidden;
float: left;
height: 100%;
}
.list-carousel-item-sx .card-hor {
background-attachment: scroll;
background-repeat-x: no-repeat;
background-repeat-y: no-repeat;
background-position-x: 50%;
background-position-y: 50%;
}
.list-carousel-item-sx .card-hor-image {
background-size: cover;
background-repeat: no-repeat;
background-position: 50%;
background-color: rgba(125, 125, 125, 0.9);
}
.card-hor-image {
background-size: cover;
height: 300px;
width: 400px;
}
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery.lazy/1.7.4/jquery.lazy.min.js"></script>
<div class="wrapper-scroll">
<div class="content-scroll">
<div class="list-carousel-item-sx">
<div class="card-3D">
<figure class="front ">
<div class="card-hor ">
<div class="card-hor-image card-image lazy" style="border-bottom-color: rgb(255, 255, 0);" data-src="https://www.gstatic.com/webp/gallery3/2.png">
</div>
</div>
</figure>
</div>
</div>
<div class="list-carousel-item-sx">
<div class="card-3D">
<figure class="front ">
<div class="card-hor ">
<div class="card-hor-image card-image lazy" style="border-bottom-color: rgb(255, 255, 0);" data-src="https://www.gstatic.com/webp/gallery3/2.png">
</div>
</div>
</figure>
</div>
</div>
<div class="list-carousel-item-sx">
<div class="card-3D">
<figure class="front ">
<div class="card-hor ">
<div class="card-hor-image card-image lazy" style="border-bottom-color: rgb(255, 255, 0);" data-src="https://www.gstatic.com/webp/gallery3/2.png">
</div>
</div>
</figure>
</div>
</div>
<div class="list-carousel-item-sx">
<div class="card-3D">
<figure class="front ">
<div class="card-hor ">
<div class="card-hor-image card-image lazy" style="border-bottom-color: rgb(255, 255, 0);" data-src="https://www.gstatic.com/webp/gallery3/2.png">
</div>
</div>
</figure>
</div>
</div>
<div class="list-carousel-item-sx">
<div class="card-3D">
<figure class="front ">
<div class="card-hor ">
<div class="card-hor-image card-image lazy" style="border-bottom-color: rgb(255, 255, 0);" data-src="https://www.gstatic.com/webp/gallery3/2.png">
</div>
</div>
</figure>
</div>
</div>
<div class="list-carousel-item-sx">
<div class="card-3D">
<figure class="front ">
<div class="card-hor ">
<div class="card-hor-image card-image lazy" style="border-bottom-color: rgb(255, 255, 0);" data-src="https://www.gstatic.com/webp/gallery3/2.png">
</div>
</div>
</figure>
</div>
</div>
</div>
</div>