(This page includes affiliate links. If you click and purchase, I receive a small commission at no extra cost from you and that way you can support me. I only recommend tools that I have personally used and loved.)
Get Elementor Pro Today –
1 – Elementor Pro
Move Image Slider with Scroll – GSAP
Easily Create an Image Slider that moves left or right based on your scroll direction. We simply translate all images in X-direction equally which is also why we need to add more images than normal in a single slider to fill up more than screen.
- dm-scrolling-image is the CSS class of all the images in slider container.
- dm-scroll-left is the CSS class of container with images that needs to move left when scrolling down.
- dm-scroll-right is the CSS class of the container with images that needs to move right when scrolling down.
- Change width percentage to your requirements, the width is for image size. Example: 20% will show 5 images at once, 25% will show 4 images etc.
- You can have different image sizes for tablet, mobile.
- Make sure to add both dm-scroll-left & dm-scroll-right container in a container and give it overflow:hidden, else there would be left/right scroll overflow.