yx13 Posted June 14, 2023 Share Posted June 14, 2023 Hi, Does anyone knows how to change the background image when scrolling? From state1 -> state2 -> state3 Link to comment Share on other sites More sharing options...
Solution GreenSock Posted June 14, 2023 Solution Share Posted June 14, 2023 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now