Do you want code, images or template?

1. Save time and import template:

2. Get code and classes here:

Javascript code:

				
					<script data-minify="1" src="https://nicolaipalmkvist.com/wp-content/cache/min/1/ajax/libs/gsap/3.11.0/gsap.min.js?ver=1759923720"></script>
<script data-minify="1" src="https://nicolaipalmkvist.com/wp-content/cache/min/1/ajax/libs/gsap/3.11.0/ScrollTrigger.min.js?ver=1759923720"></script>

<script>
const slides = document.querySelectorAll('.slide');
let isMobile = window.innerWidth <= 768; // Assuming mobile width is 768px or less

slides.forEach((slide, i) => {
    let angle = isMobile ? i * 10 : (i * 10) - 10;
    gsap.to(slide, { 
        rotation: angle,
        transformOrigin: "0% 2300px",
    });
});

let speed = isMobile ? 30 : 30; // Faster speed on mobile
ScrollTrigger.create({
    trigger: '.scroller',
    start: "top top",
    end: "bottom bottom",
    //markers: true,
    onUpdate: (self) => {
        gsap.to(slides, { 
            rotation: (i) => {
                let baseAngle = isMobile ? i * 10 : (i * 10) - 10;
                return baseAngle - self.progress * speed;
            }
        });
    }
});
</script>

				
			

Classes:

				
					scroller

slide
				
			

Download images for free:

Youtube tutorial:

Want more GSAP tutorials?

Download free images

Fill out the form to get the images I used in my YouTube video

By signing up, you’ll also join my newsletter – full of free web design tips and resources.
No spam, unsubscribe with one-click.