jmerrill Posted December 15, 2023 Posted December 15, 2023 I have some short lessons I've built here: https://upliftingme.co/lesson-1-claude-monet When clicking the next / previous buttons, I'd like a page swipe transition to occur, instead of the default page load. Any ideas?
tuanphan Posted December 17, 2023 Posted December 17, 2023 (Just a test code, if it works, we can adjust it then) Add to Code Injection > Footer <script src="https://unpkg.com/@lottiefiles/lottie-player@latest/dist/lottie-player.js"></script> <div class="splash-wrapper"> <lottie-player src="https://lottie.host/7134761f-9be6-42da-bb65-6ff81185617b/uEgxToPhd9.json" background="transparent" speed="1" style="width: 275px; height: 275;" loop autoplay></lottie-player> </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: forwards; animation-duration:.65s; animation-delay: 5s; } @keyframes slideOut { from {margin-left: 0vw;} to {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!)
jmerrill Posted December 17, 2023 Author Posted December 17, 2023 (edited) Not working yet 😞 Tried it in config and live site on multiple pages. no change. Q: Was this code suppose to apply page transitions site-wide or do I need additional code to assign it it to specific pages? Edited December 17, 2023 by jmerrill
tuanphan Posted December 18, 2023 Posted December 18, 2023 It is site wide, but if it works, you can move code to page header Can you keep the code? I can check it again easier 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!)
jmerrill Posted December 18, 2023 Author Posted December 18, 2023 @tuanphan ok and sorry - just added back in.
tuanphan Posted December 19, 2023 Posted December 19, 2023 On 12/17/2023 at 4:10 PM, tuanphan said: (Just a test code, if it works, we can adjust it then) Add to Code Injection > Footer <script src="https://unpkg.com/@lottiefiles/lottie-player@latest/dist/lottie-player.js"></script> <div class="splash-wrapper"> <lottie-player src="https://lottie.host/7134761f-9be6-42da-bb65-6ff81185617b/uEgxToPhd9.json" background="transparent" speed="1" style="width: 275px; height: 275;" loop autoplay></lottie-player> </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: forwards; animation-duration:.65s; animation-delay: 5s; } @keyframes slideOut { from {margin-left: 0vw;} to {margin-left: -100vw;} } </style> Try this new code <script src="https://unpkg.com/@lottiefiles/lottie-player@latest/dist/lottie-player.js"></script> <div class="splash-wrapper"> <lottie-player src="https://lottie.host/7134761f-9be6-42da-bb65-6ff81185617b/uEgxToPhd9.json" background="transparent" speed="1" style="width: 275px; height: 275;" loop autoplay></lottie-player> </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: forwards; animation-duration:.65s; animation-delay: 5s; top: 0; } @keyframes slideOut { from {margin-left: 0vw;} to {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!)
jmerrill Posted December 19, 2023 Author Posted December 19, 2023 (edited) @tuanphan Well, something definitely changed now. I get a black screen with a logo loading and then the black screen swipes out. Edited December 21, 2023 by jmerrill
jmerrill Posted December 24, 2023 Author Posted December 24, 2023 (edited) @tuanphan You can disregard this request for the moment. I have someone working on the site and don't want to interfere with their page load speed. I'll hit you up when I'm ready to continue on this. Edited December 24, 2023 by jmerrill tuanphan 1
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment