jryu Posted April 8 Posted April 8 https://barozziveiga.com/ Can you tell me how to fade the image out just once when I first enter the homepage? I'm a beginner, so I'd really appreciate it if you could tell me in detail. Please Help me....
tuanphan Posted April 10 Posted April 10 Something like this example (this site is Squarespace) https://tuanphan3.squarespace.com/lottie-loading-one?noredirect pass: abc 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!)
jryu Posted April 10 Author Posted April 10 Yes!! That is what I want!! Do you know how to make that effect...??
Solution tuanphan Posted April 13 Solution Posted April 13 On 4/11/2024 at 12:16 AM, jryu said: Yes!! That is what I want!! Do you know how to make that effect...?? You can add this code to Home Page Header Code Injection (Do not add to Custom CSS) Replace example image url with your image url (line 3) <div class="splash-wrapper" id="loader-container"> <!-- Lottie animation player --> <img src="https://content.invisioncic.com/p289038/monthly_2023_11/LogoTANIQtransparent.thumb.png.0c1808606ac76767e354e33194011587.png"/> </div> <style> div#loader-container img { max-width:500px; } /* Loader animation styles */ .splash-wrapper { display: none; /* Initially hidden */ position: fixed; z-index: 9999; background-color: white; 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: 0.65s; animation-delay: 5s; } @keyframes slideOut { from { margin-left: 0vw; } to { margin-left: -100vw; } } @media screen and (max-width:767px) { div#loader-container { background-size: cover; } div#loader-container img { max-width: 300px; } } </style> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.1/jquery.min.js"></script> <script> $(document).ready(function () { setTimeout(function(){ $('.splash-wrapper img').fadeIn(500); }, 3000); }); </script> jryu 1 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