Spin Loader - MeggiTools
Run
Toggle Theme
Share Link
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Spin Loader</title> <style> body { font-family: Arial, sans-serif; display: flex; justify-content: center; align-items: center; height: 100vh; background: linear-gradient(120deg, #f093fb 0%, #f5576c 100%); margin: 0; } .loader { display: flex; flex-direction: column; align-items: center; } .loader .icon { font-size: 4rem; animation: spin 2s linear infinite; } .loader .text { font-size: 1.5rem; margin-top: 20px; color: #fff; animation: fadeIn 2s ease-in-out infinite; } @keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } } @keyframes fadeIn { 0%, 100% { opacity: 0; } 50% { opacity: 1; } } </style> </head> <body> <div class="loader"> <div class="icon">🔄</div> <div class="text">Loading...</div> </div> <script> document.addEventListener('DOMContentLoaded', () => { setTimeout(() => { document.querySelector('.loader').innerHTML = '<div class="icon">✅</div><div class="text">Loaded!</div>'; }, 5000); }); </script> </body> </html>