Professional Animated Table - 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>Professional Animated Table</title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css"> <style> body { font-family: 'Arial', sans-serif; background: linear-gradient(45deg, #28313B, #485461); color: #fff; display: flex; justify-content: center; align-items: center; height: 100vh; margin: 0; } table { width: 80%; border-collapse: collapse; box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3); background: #ffffff11; border-radius: 10px; overflow: hidden; animation: fadeIn 1s ease-in-out; } th, td { padding: 15px; text-align: left; } th { background: linear-gradient(45deg, #ff6f61, #de5068); color: white; font-size: 1.1em; font-weight: bold; } td { background: rgba(255, 255, 255, 0.1); color: #ddd; border-bottom: 1px solid rgba(255, 255, 255, 0.1); position: relative; transition: background 0.3s ease; } td:hover { background: rgba(255, 255, 255, 0.2); } tr:nth-child(even) td { background: rgba(255, 255, 255, 0.05); } tr:hover td { background: rgba(255, 255, 255, 0.3); } .icon { margin-right: 10px; } @keyframes fadeIn { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } } .highlight { animation: highlightRow 1s infinite alternate; } @keyframes highlightRow { from { background-color: rgba(255, 255, 255, 0.1); } to { background-color: rgba(255, 255, 255, 0.3); } } .emoji { display: inline-block; font-size: 1.5em; margin-right: 5px; } </style> </head> <body> <table> <thead> <tr> <th><i class="fas fa-user icon"></i> Name</th> <th><i class="fas fa-envelope icon"></i> Email</th> <th><i class="fas fa-birthday-cake icon"></i> Birthday</th> <th><i class="fas fa-map-marker-alt icon"></i> Location</th> <th><i class="fas fa-star icon"></i> Rating</th> </tr> </thead> <tbody> <tr> <td><span class="emoji">👤</span> John Doe</td> <td><span class="emoji">📧</span> john.doe@example.com</td> <td><span class="emoji">🎂</span> January 1, 1990</td> <td><span class="emoji">📍</span> New York, USA</td> <td><span class="emoji">⭐</span> 5</td> </tr> <tr> <td><span class="emoji">👤</span> Jane Smith</td> <td><span class="emoji">📧</span> jane.smith@example.com</td> <td><span class="emoji">🎂</span> February 20, 1985</td> <td><span class="emoji">📍</span> London, UK</td> <td><span class="emoji">⭐</span> 4</td> </tr> <tr> <td><span class="emoji">👤</span> Mike Johnson</td> <td><span class="emoji">📧</span> mike.johnson@example.com</td> <td><span class="emoji">🎂</span> March 15, 1975</td> <td><span class="emoji">📍</span> Sydney, Australia</td> <td><span class="emoji">⭐</span> 3</td> </tr> </tbody> </table> <script> document.querySelectorAll('tbody tr').forEach(row => { row.addEventListener('click', () => { row.classList.toggle('highlight'); }); }); </script> </body> </html>