Revolutionize projects with our advanced source code. Elevate innovation, accelerate development, and gain a competitive edge.
source
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <title>CSS border Animation</title> <link rel="stylesheet" type="text/css" href="style.css"> </head> <body> <div class="box"> <h2>Html</h2> </div> <div class="box"> <h2 class="big">❤️</h2> </div> <div class="box"> <h2>CSS</h2> </div> </body> </html>
@import url('https://fonts.googleapis.com/css?family=Poppins:200,300,400,500,600,700,800,900&display=swap'); * { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Poppins', sans-serif; } @property --a { syntax: '<angle>'; inherits: false; initial-value: 0deg; } body { display: flex; justify-content: center; align-items: center; min-height: 100vh; background: #25252b; gap: 100px; flex-wrap: wrap; } .box { position: relative; width: 300px; height: 300px; background: repeating-conic-gradient(from var(--a),#ff2770 0%,#ff2770 5%, transparent 5%,transparent 40%, #ff2770 50%); animation: rotating 2s linear infinite; animation-play-state: paused; border-radius: 20px; filter: drop-shadow(0 15px 50px #000); display: flex; justify-content: center; align-items: center; } .box:nth-child(1) { filter: drop-shadow(0 15px 50px #000) hue-rotate(225deg); } .box:nth-child(3) { filter: drop-shadow(0 15px 50px #000) hue-rotate(310deg); } @keyframes rotating { 0% { --a: 0deg; } 100% { --a: 360deg; } } .box::before { content: ''; position: absolute; width: 100%; height: 100%; background: repeating-conic-gradient(from var(--a),#45f3ff 0%,#45f3ff 5%, transparent 5%,transparent 40%, #45f3ff 50%); animation: rotating 2s linear infinite; animation-play-state: paused; border-radius: 20px; animation-delay: -0.5s; } .box:hover, .box:hover::before { animation-play-state: running; } .box::after { content: ''; position: absolute; inset: 6px; border: 8px solid #25252b; border-radius: 15px; background: #2d2d39; } h2 { position: absolute; inset: 40px; display: flex; justify-content: center; align-items: center; border-radius: 10px; background: rgba(0,0,0,0.2); z-index: 100; color: #fff; font-size: 2.5em; font-weight: 500; text-transform: uppercase; box-shadow: inset 0 10px 20px rgba(0,0,0,0.5); border-bottom: 2px solid rgba(255,255,255,0.15); } .big { font-size: 5em; }