Main Content Area Gradient Stripes - 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 - Gradient Stripes</title> <style> body { margin: 0; padding: 0; font-family: 'Arial', sans-serif; background: linear-gradient(to right, #ee9ca7, #ffdde1); 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); } } .stripes { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: repeating-linear-gradient( 45deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.1) 10px, rgba(255, 255, 255, 0.3) 10px, rgba(255, 255, 255, 0.3) 20px ); z-index: 0; pointer-events: none; } h1 { text-align: center; margin-bottom: 20px; font-size: 2.5em; animation: slideInLeft 1s ease-in-out; z-index: 1; position: relative; } @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; z-index: 1; position: relative; } @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; z-index: 1; position: relative; } .button:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2); } </style> </head> <body> <div class="main-content"> <div class="stripes"></div> <h1>Welcome to the Gradient Stripes Area</h1> <p>This area uses a gradient stripes effect 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>