Stylish Horizontal Rule - 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>Stylish Horizontal Rule</title> <style> body { font-family: 'Arial', sans-serif; background-color: #f0f0f0; display: flex; justify-content: center; align-items: center; height: 100vh; margin: 0; flex-direction: column; } .stylish-hr { position: relative; width: 80%; height: 10px; border: none; background: linear-gradient(90deg, #ff6f61, #ff9478, #ffbc9c, #ffd9b3); background-size: 400% 400%; animation: gradient-move 5s ease infinite; margin: 30px 0; } .stylish-hr::after { content: '\f005'; font-family: 'Font Awesome 5 Free'; font-weight: 900; position: absolute; top: 15px; left: 50%; transform: translateX(-50%); font-size: 1.5rem; color: #ff6f61; animation: spin 2s linear infinite; } @keyframes gradient-move { 0% { background-position: 0% 50%; } 100% { background-position: 100% 50%; } } @keyframes bounce { 0%, 100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(-10px); } } @keyframes spin { from { transform: translateX(-50%) rotate(0deg); } to { transform: translateX(-50%) rotate(360deg); } } </style> </head> <body> <hr class="stylish-hr"> <script src="https://kit.fontawesome.com/a076d05399.js" crossorigin="anonymous"></script> </body> </html>