Elementor tricks- Best Way To Add Image Rotate when scrolling with Elementor.

advert

WordPress Elementor + CSS will add good working features for your WordPress website. Whether you’re creating a website, a blog, or a store – you’ll find yourself in a situation where you’ll need to display images that can be rotate when scrolling through a page. Well, after testing out Elementor Pro plugin I found that it has the capability to rotate the image as the user scrolls down, allowing you to create an image gallery with ease. In the attached YouTube tutorial.

YouTube tutorial will be available soon.

Use the attached code to add the feature to your WordPress website:

CSS code
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
<script type="text/javascript">
var $image = $('.img');
var $win = $(window);
$win.on('scroll',function(){
        var speed =0.5;
        var top = $win.scrollTop()*speed;
        $image.css('transform','rotate('+top+'deg)');
    });
</script>

copy and paste the code

You can also learn how to create Elementor team member with cool hover effect

advert:

Support us:

1
0
Would love your thoughts, please comment.x
()
x

Login To Access Code Snippet:

Stay UpTo Date with Latest Post And news: