misoanthropos Posted December 13, 2023 Posted December 13, 2023 Hello, Im trying to implement this code to a squarespace website so it has page transitions, i still can't do it propperly. I'm used to webflow so it's my first time not knowing the classes or how to add some divs. If someone could help me I would be so grateful https://codepen.io/alvarotrigo/pen/LYeKGVV
tuanphan Posted December 15, 2023 Posted December 15, 2023 Your Codepen require a lot of adjustment, so I tested it & customize this below code. The effect is quite similar your Codepen. Add this code to Website Tools (under Not Linked) > Code Injection > Footer <div class="splash-wrapper"> </div> <style> .splash-wrapper { position:fixed; z-index:9999; background-color: #000000; height:100vh; width:100vw; display:flex; flex-flow: column nowrap; justify-content:center; align-items:center; animation-name: slideOut; animation-fill-mode: backwards; animation-duration:.65s; animation-delay: 2s; top: 0; margin-left: 100vw; } @keyframes slideOut { 0% {margin-left: 100vw;} 50% {margin-left: 0vw;} 100% {margin-left: 100vw;} } </style> Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment