Main Content Area Vibrant Dots - 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>Main Content Area - Vibrant Dots</title> <style> body { margin: 0; padding: 0; font-family: 'Arial', sans-serif; background: linear-gradient(to right, #ff9966, #ff5e62); height: 100vh; display: flex; align-items: center; justify-content: center; overflow: hidden; } .main-content { width: 80%; padding: 30px; background: rgba(255, 255, 255, 0.1); border-radius: 15px; box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.3); color: #fff; position: relative; animation: fadeIn 1s ease-in-out; } @keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } } .dots { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); display: grid; grid-template-columns: repeat(3, 1fr); grid-gap: 10px; } .dots div { width: 20px; height: 20px; background: #fff; border-radius: 50%; animation: bounce 1.5s infinite; } .dots div:nth-child(1) { animation-delay: 0s; } .dots div:nth-child(2) { animation-delay: 0.3s; } .dots div:nth-child(3) { animation-delay: 0.6s; } @keyframes bounce { 0%, 20%, 50%, 80%, 100% { transform: translateY(0); } 40% { transform: translateY(-30px); } 60% { transform: translateY(-15px); } } h1 { text-align: center; margin-bottom: 20px; font-size: 2.5em; animation: slideInLeft 1s ease-in-out; } @keyframes slideInLeft { from { opacity: 0; transform: translateX(-100%); } to { opacity: 1; transform: translateX(0); } } p { font-size: 1.2em; line-height: 1.6; animation: slideInRight 1s ease-in-out; } @keyframes slideInRight { from { opacity: 0; transform: translateX(100%); } to { opacity: 1; transform: translateX(0); } } .button { display: inline-block; margin-top: 20px; padding: 10px 20px; font-size: 1em; color: #fff; background: linear-gradient(45deg, #ff6b6b, #f06595); border: none; border-radius: 50px; cursor: pointer; transition: transform 0.3s ease, box-shadow 0.3s ease; text-align: center; } .button:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2); } </style> </head> <body> <div class="main-content"> <h1>Welcome to the Vibrant Dots Area</h1> <p>This area uses a vibrant dot animation with a beautiful linear gradient background. It includes animations to make it highly attractive and professional. Customize this space to suit your needs and make it your own!</p> <button class="button">Learn More</button> </div> <script> document.querySelector('.button').addEventListener('click', () => { alert('This button can be customized for various actions!'); }); </script> </body> </html>