Stylish Memory Cleaner - 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>Stylish Memory Cleaner</title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css"> <style> body { font-family: 'Arial', sans-serif; background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%); color: #333; display: flex; justify-content: center; align-items: center; height: 100vh; margin: 0; overflow: hidden; } .container { background: white; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); border-radius: 20px; padding: 2rem; text-align: center; animation: fadeIn 1s ease-in-out; max-width: 400px; width: 100%; } .title { font-size: 2rem; margin-bottom: 1rem; position: relative; } .icon { font-size: 4rem; margin: 1rem 0; color: #ff6b81; } .button { background: #ff6b81; color: white; border: none; padding: 1rem 2rem; border-radius: 50px; font-size: 1rem; cursor: pointer; transition: transform 0.3s, background 0.3s; margin-top: 1rem; } .button:hover { background: #e63946; transform: scale(1.05); } .progress-bar { width: 100%; background: #e0e0e0; border-radius: 50px; overflow: hidden; margin-top: 1rem; } .progress { height: 20px; width: 0; background: #ff6b81; border-radius: 50px; transition: width 1s; } .message { font-size: 1.2rem; margin-top: 1rem; display: none; } @keyframes fadeIn { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } } </style> </head> <body> <div class="container"> <h1 class="title">Stylish Memory Cleaner</h1> <i class="fas fa-broom icon"></i> <button class="button" onclick="cleanMemory()">Clean Memory</button> <div class="progress-bar"> <div class="progress" id="progress"></div> </div> <p class="message" id="message">Memory cleaned successfully!</p> </div> <script> function cleanMemory() { const progress = document.getElementById('progress'); const message = document.getElementById('message'); progress.style.width = '0'; message.style.display = 'none'; let width = 0; const interval = setInterval(() => { if (width >= 100) { clearInterval(interval); message.style.display = 'block'; } else { width += 1; progress.style.width = width + '%'; } }, 30); } </script> </body> </html>