vamsi12 Posted November 29, 2024 Posted November 29, 2024 on scrolling to translatez axis at 900px i want to visible image completely and and slowly fadeout to 1750px See the Pen YPKPEQP by Hima-Vamsi-Kummari (@Hima-Vamsi-Kummari) on CodePen.
mvaneijgen Posted November 29, 2024 Posted November 29, 2024 3 minutes ago, vamsi12 said: on scrolling to translatez axis at 900px i want to visible image completely and and slowly fadeout to 1750px Can you also explain what it is doing now? Sorry we don't have the time and resources to measure pixels with a fine tooth comb. Normally in GSAP things work with durations, but when working with ScrollTrigger these durations get converted to distance. It might be hard to wrap your head around, but maybe this example helps: Let's say we have four tweens that all take 1 second to animate and the total ScrollTrigger distance is 400px each tween will then take up 100px. If we remove one tween and make the last tween take 2 seconds the first two tweens will take still 100px, but the last tween will get stretched over the remaining 200px. So if you want things to happen at specific pixel values you'll have to get your total scroll distance and your total duration and then interpolate how much X amount of seconds is 900px. Hope it helps and happy tweening!
vamsi12 Posted November 29, 2024 Author Posted November 29, 2024 when scaling the image on scroll at certain time it should be the opacity full and completely visible and slowly fade out completely and go out of the viewport
Rodrigo Posted November 29, 2024 Posted November 29, 2024 Hi, I've read this a few times and is not really clear of what should happen and what exactly is not working in your demo. Can you please be as specific as possible and, if you can, provide a URL of a page or demo that does what you'¡re trying to achieve? In order to get a better idea.
vamsi12 Posted November 30, 2024 Author Posted November 30, 2024 sorry for the in convenience , https://sites.research.google/languages/ please see this website, in this website check how it works section there you can see the images are zooming out on scroll at certain point the images clearly visible and then fading out .in the same way can you help me with my code
vamsi12 Posted December 2, 2024 Author Posted December 2, 2024 sorry for the in convenience , https://sites.research.google/languages/ please see this website, in this website check how it works section there you can see the images are zooming out on scroll at certain point the images clearly visible and then fading out .in the same way can you help me with my code
Cassie Posted December 2, 2024 Posted December 2, 2024 Hi there! I would probably lean into viewport widths and random values to achieve this. Something like this might be a good starting point? See the Pen RNbPEgK?editors=0010 by GreenSock (@GreenSock) on CodePen.
vamsi12 Posted December 7, 2024 Author Posted December 7, 2024 Thank you so much but the problem is in webflow it is not working
Cassie Posted December 9, 2024 Posted December 9, 2024 Take a look at this page and the installation video. https://gsap.com/resources/Webflow/
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