WordPress Elementor scrolling rotation image tutorial and template free
Features
🔸Fully customizable
🔸Responsive
🔸CSS code
Tutorial link:
☑️Support me on Patreon
☑️Download link Click here
CSS code
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
<script type="text/javascript">
<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>
Comments
Post a Comment