/* 1. Full-screen overlay mask */ #preloader { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; background-color: #ffffff; /* Background color of the loading screen */ z-index: 9999; /* Ensures it sits on top of all other layers */ display: flex; justify-content: center; align-items: center; transition: opacity 0.5s ease, visibility 0.5s ease; } /* 2. The animated spinning circle */ .loader { width: 50px; height: 50px; border: 5px solid #f3f3f3; /* Light gray track circle */ border-top: 5px solid #3498db; /* Blue colored moving accent */ border-radius: 50%; animation: spin 1s linear infinite; } /* 3. Rotation animation frames */ @keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } } /* 4. Utility class to fade out the preloader via JS */ .preloader-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
/* 1. Full-screen overlay mask */ #preloader { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; background-color: #ffffff; /* Background color of the loading screen */ z-index: 9999; /* Ensures it sits on top of all other layers */ display: flex; justify-content: center; align-items: center; transition: opacity 0.5s ease, visibility 0.5s ease; } /* 2. The animated spinning circle */ .loader { width: 50px; height: 50px; border: 5px solid #f3f3f3; /* Light gray track circle */ border-top: 5px solid #3498db; /* Blue colored moving accent */ border-radius: 50%; animation: spin 1s linear infinite; } /* 3. Rotation animation frames */ @keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } } /* 4. Utility class to fade out the preloader via JS */ .preloader-hidden { opacity: 0; visibility: hidden; pointer-events: none; }

Blog

/
LATEST NEWS
Latest Posts