Chat Skeleton - 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>Chat Skeleton</title> <style> @import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap'); * { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: 'Poppins', sans-serif; background: linear-gradient(135deg, #f3f3f3, #f9f9f9); display: flex; justify-content: center; align-items: center; height: 100vh; } .skeleton-chat { width: 400px; height: 600px; background: #fff; border-radius: 10px; box-shadow: 0 20px 40px rgba(0,0,0,0.1); padding: 20px; display: flex; flex-direction: column; justify-content: space-between; animation: fadeIn 1.5s ease-in-out; } .skeleton-chat .message { background: #ddd; height: 20px; width: 80%; border-radius: 5px; margin-bottom: 10px; animation: shimmer 1.5s infinite; } .skeleton-chat .message.sent { margin-left: auto; width: 60%; } .skeleton-chat .input { background: #ddd; height: 40px; width: 100%; border-radius: 5px; animation: shimmer 1.5s infinite; } @keyframes fadeIn { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } } @keyframes shimmer { 0% { background-position: -200px 0; } 100% { background-position: calc(200px + 100%) 0; } } </style> </head> <body> <div class="skeleton-chat"> <div class="message"></div> <div class="message sent"></div> <div class="message"></div> <div class="message sent"></div> <div class="message"></div> <div class="input"></div> </div> </body> </html>