JAMIUL ISLAM Posted February 14, 2022 Posted February 14, 2022 I tried to pin the current page (div1) and when the next page(div2) will slide up, the current page (div1) will keep going 30 percent to the top, creating a parallax effect. But the problem is, when The 2nd page(div2) pins and 3rd page(div3) slides up, the 2nd(div2) page's parallax effect breaks the whole design. I need help. See the Pen WNXZbzQ by lucifer1112k (@lucifer1112k) on CodePen.
OSUblake Posted February 14, 2022 Posted February 14, 2022 Hi Jamuil, I'm not sure what you're going for here, but you have several tweens targeting all your .section elements. You really shouldn't animate your triggers. I would suggest re-working it so you animate an element inside your section that wraps your image and text. 1
JAMIUL ISLAM Posted March 7, 2022 Author Posted March 7, 2022 hi @OSUblake , here's the new code. I need to animate my website in the way https://www.polywork.com/story. I can pin the section. but I can't animate like the mentioned website. can I get a hint? See the Pen oNoGNwB by lucifer1112k (@lucifer1112k) on CodePen.
Solution Cassie Posted March 7, 2022 Solution Posted March 7, 2022 Hey there @JAMIUL ISLAM, This website isn't actually using 'scrolling'. It's actually triggering animations based on events. Like this demo here... See the Pen PoWapLP by BrianCross (@BrianCross) on CodePen. Hope this helps! 2
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