Elegant Media Object - 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>Elegant Media Object</title> <style> body { font-family: 'Arial', sans-serif; background-color: #fafafa; display: flex; justify-content: center; align-items: center; height: 100vh; margin: 0; } .media-object { display: flex; align-items: center; background: #ffffff; border-radius: 20px; padding: 20px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); transition: transform 0.3s ease, box-shadow 0.3s ease; } .media-object:hover { transform: scale(1.03); box-shadow: 0 20px 40px rgba(0,0,0,0.2); } .media-object img { border-radius: 50%; width: 100px; height: 100px; margin-right: 20px; transition: transform 0.3s ease; } .media-object:hover img { transform: rotate(10deg); } .media-object .content { max-width: 400px; } .media-object .content h2 { margin: 0; font-size: 1.5rem; color: #333; display: flex; align-items: center; } .media-object .content h2 .emoji { margin-left: 10px; } .media-object .content p { margin: 10px 0; color: #777; } .media-object .content .icons { display: flex; gap: 10px; } .media-object .content .icons i { font-size: 1.5rem; color: #777; cursor: pointer; transition: color 0.3s ease, transform 0.3s ease; } .media-object .content .icons i:hover { color: #ff4081; transform: scale(1.2); } </style> <script src="https://kit.fontawesome.com/a076d05399.js" crossorigin="anonymous"></script> </head> <body> <div class="media-object"> <img src="https://via.placeholder.com/100" alt="Profile Picture"> <div class="content"> <h2>Alex Smith <span class="emoji">🌼</span></h2> <p>Curabitur vel libero a nulla pharetra consequat ut sit amet quam. Morbi tempus at justo a luctus.</p> <div class="icons"> <i class="fas fa-thumbs-up"></i> <i class="fas fa-comment-dots"></i> <i class="fas fa-share"></i> </div> </div> </div> </body> </html>