sudeep Posted March 5 Share Posted March 5 I need to modify this code. Currently, when 'panel-pin' enters the view port, each '.panel' translates along the y-axis from the bottom, which is working as expected. Now, I want to implement a scaling effect on 'panel-img'. The image should scale up when the first panel enters the view port, and after a few scrolls, it should return to its original size. This scaling effect should then apply to each subsequent panel as it enters the view port. See the Pen xxeGBmq by sudeep2011 (@sudeep2011) on CodePen Link to comment Share on other sites More sharing options...
mvaneijgen Posted March 5 Share Posted March 5 Hi @sudeep welcome to the forum! I've written a guide how to create any card stacking effect. It goes in to detail how to structure everything to make it easy to create any effect For you the trick will be to create a timeline and add all your animation to a timeline, this demo demonstrates how you could go about this. Hope it helps and happy tweening! See the Pen abMbwYd by mvaneijgen (@mvaneijgen) on CodePen 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