prakash24 Posted January 17 Posted January 17 I need to make animation, like exactly in attached video, i’ve a section which has some padding around left and right with image inside it. (initially image width is around 1280px) then when user triggers scroll then image should smooth expand around edges to available viewport to look like fullscreen(not position fixed). user can scroll image to show content below images also. please see tha attached video. please share any reference or code IMG_5934.mp4
GSAP Helper Posted January 17 Posted January 17 We love helping with GSAP-related questions, but unfortunately we just don't have the resources to provide free general consulting, logic troubleshooting, or "how do I recreate this cool effect I saw on another site?" tutorials. Of course anyone else is welcome to post an answer - we just want to manage expectations. If you're looking for ScrollTrigger effects, I'd recommend looking at the demos at https://codepen.io/collection/DkvGzg and https://codepen.io/collection/AEbkkJ - you may be able to use one of those as a jumping-off point. You are welcome to post in the "Jobs & Freelance" forum for paid consulting, or contact us directly. Otherwise, if you've got a GSAP-specific question just post that here along with a minimal demo and we'd be happy to take a look. 1
Rodrigo Posted January 17 Posted January 17 Hi, I'd look into the Flip Plugin for this: See the Pen OJqpQWP by GreenSock (@GreenSock) on CodePen. https://gsap.com/docs/v3/Plugins/Flip/ Hopefully this helps Happy Tweening! 1
prakash24 Posted January 19 Author Posted January 19 Hi @Rodrigo, Thanks for your suggestion. I tried this with ScrollTrigger, I think It's working as expected on scroll, But when i scroll back, Snap scroll is happening first & after snap done, then width transition is happening. But I want both snap & width transition happen parallelly when i scroll back. Here I attached my codepen. And I'm adding container width to image's wrapper at page initial load, but i see image width changes on page load, but it should not, is there any possible to do avoid this. See the Pen wBwXMWy by xpmpemne-the-sans (@xpmpemne-the-sans) on CodePen.
Rodrigo Posted January 20 Posted January 20 Hi @prakash24, Maybe something like this, it seems simpler IMHO: See the Pen bNbxBmZ by GreenSock (@GreenSock) on CodePen. Hopefully this helps Happy Tweening!
prakash24 Posted January 21 Author Posted January 21 Thanks! it’s working, i’ve to check the use of clamp.
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