Jump to content
Search Community

How to change background image on scrolling

yx13 test
Moderator Tag

Go to solution Solved by GreenSock,

Recommended Posts

  • Solution

Are you just trying to flip between images, like a sprite sheet? Animate the position, like panning across the image? Pretty much anything is possible...I'm just not sure what you're looking for. But you could animate the backgroundPosition and wire that up to a ScrollTrigger. Maybe give that a shot and if you get stuck, provide a minimal demo (like a CodePen) so we can take a peek at the issue in context. 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...