Bold And Dynamic 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>Bold and Dynamic Details Summary</title> <style> body { font-family: 'Arial', sans-serif; background: #212121; color: #fff; display: flex; justify-content: center; align-items: center; height: 100vh; margin: 0; } .details-container { width: 80%; max-width: 600px; background: #333; border-radius: 10px; box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5); 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: #444; color: #fff; border-top: 1px solid #555; animation: fadeIn 0.3s ease-in-out; } @keyframes fadeIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } } </style> </head> <body> <div class="details-container"> <details> <summary>Additional Info</summary> <div> <p>This bold and dynamic details/summary component makes a strong statement while maintaining clarity and usability.</p> </div> </details> </div> </body> </html>