Fun And Vibrant Details Summary - 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>Fun and Vibrant Details Summary</title> <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet"> <style> body { font-family: 'Arial', sans-serif; background: #ffeb3b; display: flex; justify-content: center; align-items: center; height: 100vh; margin: 0; } .details-container { width: 80%; max-width: 600px; background: #fff; border-radius: 10px; box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1); overflow: hidden; } summary { padding: 20px; background: #ff5722; color: #fff; cursor: pointer; position: relative; font-size: 1.2em; outline: none; display: flex; justify-content: space-between; align-items: center; } summary::marker { display: none; } summary::after { content: "expand_more"; font-family: 'Material Icons'; transition: transform 0.3s ease-in-out; } details[open] summary::after { transform: rotate(180deg); } summary:hover { background: #e64a19; } details div { padding: 20px; background: #fff; border-top: 1px solid #ddd; animation: fadeIn 0.3s ease-in-out; } @keyframes fadeIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } } .emoji { margin-right: 10px; font-size: 1.5em; } </style> </head> <body> <div class="details-container"> <details> <summary><span class="emoji">🎉</span> Exciting Details</summary> <div> <p>This fun and vibrant details/summary component brings energy and excitement to your content.</p> </div> </details> </div> </body> </html>