Starry Night Hr - 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>Starry Night HR</title> <style> body { font-family: Arial, sans-serif; background-color: #2c3e50; color: #ecf0f1; padding: 20px; } .starry-hr { border: none; height: 4px; background: linear-gradient(to right, #2980b9, #8e44ad); position: relative; margin: 50px 0; } .starry-hr::before, .starry-hr::after { content: '🌟'; position: absolute; top: -25px; font-size: 1.5em; animation: twinkle 2s infinite; } .starry-hr::before { left: 10%; } .starry-hr::after { right: 10%; } @keyframes twinkle { 0%, 100% { opacity: 0.8; } 50% { opacity: 1; } } </style> </head> <body> <h1>Starry Night Horizontal Rule</h1> <p>This horizontal rule twinkles like stars in the night sky.</p> <hr class="starry-hr"> </body> </html>