.mdl Posted August 1, 2021 Posted August 1, 2021 I get a bad transition between the first and second figure, I need to do as on the website https://readymag.com/evrone/2744381/3/ Please help me figure it out. I guess that I have problems with the scroll trigger somewhere. See the Pen LYydVGK by mdl95r (@mdl95r) on CodePen.
Solution mikel Posted August 1, 2021 Solution Posted August 1, 2021 Hey @.mdl, Try a specific position for the SVGs. svg { position:absolute; top: 50%; left: 50%; width: 50%; height: 50%; overflow: visible; transform: translate(-50%, -50%); } Your code could be simplified a lot more. See the Pen bGWKWwV by mikeK (@mikeK) on CodePen. Happy scrolling ... Mikel 4
.mdl Posted August 2, 2021 Author Posted August 2, 2021 17 hours ago, mikel said: Hey @.mdl, Try a specific position for the SVGs. svg { position:absolute; top: 50%; left: 50%; width: 50%; height: 50%; overflow: visible; transform: translate(-50%, -50%); } Your code could be simplified a lot more. Happy scrolling ... Mikel @mikel Thanks a lot for this example! 1
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