Jump to content
Search Community

Background image change on scroll

Aragorn Elessar test
Moderator Tag

Recommended Posts

Hi @Aragorn Elessar welcome to the forum!

 

What have you tried already? We love to see what you can come up with yourself, that way we can see your thought process and thus better help you. The best way to learn is to get your hands dirty and just write some code, if you're stuck again post back here with the (not working) code and someone will be sure to help you out. 

 

Check out these getting started guides if you need some guidance 

 

https://greensock.com/get-started/
https://greensock.com/get-started-2


And a small little hint: I would start with a timeline and don't worry about scroll at the beginning, because the best thing to do when working with ScrollTrigger is to remove it! This seems counter intuitive, but ScrollTrigger is just animating something on scroll, so just focus on the animation at first and only when you're happy with the animation add ScrollTrigger back in. This way you can focus on one part at a time and it will save a lot of headache when debugging. 

  • Like 2
Link to comment
Share on other sites

On 8/4/2023 at 3:26 PM, mvaneijgen said:

Hi @Aragorn Elessar welcome to the forum!

 

What have you tried already? We love to see what you can come up with yourself, that way we can see your thought process and thus better help you. The best way to learn is to get your hands dirty and just write some code, if you're stuck again post back here with the (not working) code and someone will be sure to help you out. 

 

Check out these getting started guides if you need some guidance 

 

https://greensock.com/get-started/
https://greensock.com/get-started-2


And a small little hint: I would start with a timeline and don't worry about scroll at the beginning, because the best thing to do when working with ScrollTrigger is to remove it! This seems counter intuitive, but ScrollTrigger is just animating something on scroll, so just focus on the animation at first and only when you're happy with the animation add ScrollTrigger back in. This way you can focus on one part at a time and it will save a lot of headache when debugging. 

Thanks for the advice and the info, the links proved to be extremely useful to me, I've learnt a lot about GSAP animations. The solution I've already tried is in the attached .js filetestscript.js

  • Like 1
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...