Guest Posted May 20, 2021 Share Posted May 20, 2021 Hello , i try to change light intensity on scroll with some fade using scroll trigger ``` gsap.to(nightShadowLight.intensity, { intensity:0, scrollTrigger: { trigger: renderer.domElement, start: 'top top', end: '+=500%', pin: true, scrub: true }, onUpdate: function () { }, }) ``` Link to comment Share on other sites More sharing options...
Solution akapowl Posted May 20, 2021 Solution Share Posted May 20, 2021 Hey @leenalfalah It's always best to include a minimal demo because it can often be hard to tell what's wrong from just a codesnippet. I would guess, that maybe you just need to remove the .intensity from your target selector ( nightShadowLight.intensity ) See the Pen bed39f19a1f1dffb71f4a42e9a628b7b by akapowl (@akapowl) on CodePen 3 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