Toggle navigation
☰
Home
HTML
CSS
Scripting
Database
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Hover-Effect List</title> <style> /* ========================================================================== Styles for Demo Preview Only ========================================================================== */ body { font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; background-color: #f1f5f9; color: #334155; margin: 0; padding: 2rem; display: flex; justify-content: center; } /* ========================================================================== Hover-Effect List Component Styles - Copy from here ========================================================================== */ .hover-effect-list-template { --hover-font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; --hover-primary-text-color: #1e293b; --hover-secondary-text-color: #64748b; --hover-accent-color: #7c3aed; --hover-bg-color: #ffffff; --hover-border-color: #e2e8f0; --hover-shadow: 0 1px 3px 0 rgba(0,0,0,0.07); --hover-active-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05); --hover-transition-speed: 0.2s; font-family: var(--hover-font-family); color: var(--hover-primary-text-color); width: 100%; max-width: 700px; } .hover-effect-list-template *, .hover-effect-list-template *::before, .hover-effect-list-template *::after { box-sizing: border-box; } .hover-effect-list-template .list-header { text-align: center; margin-bottom: 2rem; } .hover-effect-list-template .list-header h2 { font-size: 1.75rem; margin: 0; } .interactive-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; } .list-item { display: flex; align-items: center; gap: 1.5rem; background-color: var(--hover-bg-color); border: 1px solid var(--hover-border-color); border-radius: .5rem; padding: 1.5rem; text-decoration: none; color: inherit; box-shadow: var(--hover-shadow); transition: transform var(--hover-transition-speed) ease-in-out, box-shadow var(--hover-transition-speed) ease-in-out; } .list-item:hover { transform: translateY(-5px); box-shadow: var(--hover-active-shadow); } .list-item .item-icon { flex-shrink: 0; width: 40px; height: 40px; background-color: #f1f5f9; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #64748b; transition: background-color var(--hover-transition-speed) ease-in-out, color var(--hover-transition-speed) ease-in-out; } .list-item:hover .item-icon { background-color: var(--hover-accent-color); color: white; } .list-item .item-icon svg { width: 24px; height: 24px; } .item-content h3 { margin: 0 0 0.25rem 0; font-size: 1.1rem; transition: color var(--hover-transition-speed) ease-in-out; } .list-item:hover h3 { color: var(--hover-accent-color); } .item-content p { margin: 0; font-size: .9rem; color: var(--hover-secondary-text-color); line-height: 1.5; } </style> </head> <body> <div class="hover-effect-list-template"> <header class="list-header"> <h2>Academy of Mundane Magic: Course Catalog</h2> </header> <ul class="interactive-list"> <li> <a href="#" class="list-item"> <span class="item-icon"> <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" d="M6.75 7.5l3 2.25-3 2.25m4.5 0h3m-9.75 6.75h16.5c.621 0 1.125-.504 1.125-1.125V6.75c0-.621-.504-1.125-1.125-1.125H3.375c-.621 0-1.125.504-1.125 1.125v10.5c0 .621.504 1.125 1.125 1.125h3.375c.621 0 1.125-.504 1.125-1.125V18.375z" /></svg> </span> <div class="item-content"> <h3>Summon Lukewarm Coffee</h3> <p>Master the art of conjuring a perfectly mediocre cup of coffee directly to your desk. Neither hot nor cold, just... present.</p> </div> </a> </li> <li> <a href="#" class="list-item"> <span class="item-icon"> <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" d="M15.75 5.25a3 3 0 013 3m3 0a6 6 0 01-7.029 5.912c-.563-.097-1.159.026-1.563.43L10.5 17.25H8.25v2.25H6v2.25H2.25v-2.818c0-.597.237-1.17.659-1.591l6.499-6.499c.404-.404.527-1 .43-1.563A6 6 0 1121.75 8.25z" /></svg> </span> <div class="item-content"> <h3>Locate Misplaced Keys (Eventually)</h3> <p>This incantation will reveal the location of your keys within 3-5 business days, typically moments after you've already found them.</p> </div> </a> </li> <li> <a href="#" class="list-item"> <span class="item-icon"> <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" d="M8.25 3v1.5M4.5 8.25H3m18 0h-1.5M4.5 12H3m18 0h-1.5m-15 3.75H3m18 0h-1.5M8.25 19.5V21M12 3v1.5m0 15V21m3.75-18v1.5M19.5 8.25h1.5m-1.5 3.75h1.5m-1.5 3.75h1.5M12 12l3.75 3.75m-7.5-3.75L12 12m0 0l-3.75 3.75M12 12l3.75-3.75m-7.5 3.75L12 12z" /></svg> </span> <div class="item-content"> <h3>The Art of Perceptual Filtering</h3> <p>A powerful glamour that makes you completely invisible to anyone you owe money to, or someone you'd rather not talk to at the grocery store.</p> </div> </a> </li> </ul> </div> </body> </html>