Digital Marketing Agency

3D Rotating Image Gallery Using Elementor | WordPress Image Gallery

Facebook
Twitter
Pinterest

3D Image Slider JS

				
					<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
  <script>
var $ = jQuery
$(document).ready(function(){
  var className = 'myGallery' //CLASSNAME
  
  $('.' + className).each(function(){
    var span = $(this).find('.elementor-widget-image'),
        len = span.length
    span.each(function(i){
        $(this).css('transform', 'rotateY(' + i*360/len + 'deg) translateZ(calc(' + ((len + 1) * 31 + len*1) + 'px))')
    })
    $(this).parent().addClass('myGalleryParent')
  })
})
</script>
				
			
3D Rotating Image Gallery

3D Image Slider CSS

				
					selector .elementor-widget-wrap{
    width: 200px;
    height:200px;
    transform-style: preserve-3d;
}
selector .elementor-widget-image{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform-origin: center;
    transform-style: preserve-3d;
    -webkit-box-reflect: below 0px linear-gradient(transparent,transparent,#0004);
    margin: 0 !important;  
}
selector .elementor-widget-image img{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
				
			

3D Image Animation CSS

				
					/*ANIMATION*/
selector .elementor-widget-wrap{
    /*Duration Control*/
    animation: animate 20s linear infinite;
}
@keyframes animate{
    0%
    {
        transform: perspective(1000px) rotateY(0deg);
    }
    100%
    {
        transform: perspective(1000px) rotateY(360deg);
    }
}
				
			

3D Image Slider CSS

				
					/*MOBILE*/
@media (max-width:767px){
.myGalleryParent{
    /*Scale Control*/
    transform: scale(0.7);
}
}
				
			

Wanna join my secret winners’ group?

I only share these secrets with the people in this group. Honestly, you can not find such tricks for FREE on the whole internet!

  •  Money Making Blog Tricks
  •  $100k by Freelancing Formula
  •  Secret Resources
  •  Rich Dad business tactics
  •  And, of course about my upcoming videos and plans

(At this moment it’s FREE! And, if you join now, you’ll remain a FREE group member forever.)

Scroll to Top