<script setup lang="ts"></script> <template> <div class="content fit center"> <div class="box"> <span></span> <h2>02</h2> </div> </div> </template> <style lang="scss" scoped> @import url('https://fonts.googleapis.com/css2?family=Fjalla+One&display=swap'); @keyframes animate { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } } .content { background-color: #0c1022; font-family: 'Fjalla One', cursive; } .box { position: relative; width: 340px; height: 195px; background-color: rgba(0, 0, 0, 0.75); border-radius: 10px; display: flex; justify-content: center; align-items: center; overflow: hidden; &::before { content: ''; position: absolute; width: 600px; height: 400px; background-image: conic-gradient( transparent, transparent, transparent, #00ccff ); animation: animate 3s linear infinite; } &::after { content: ''; position: absolute; width: 600px; height: 400px; background-image: conic-gradient( transparent, transparent, transparent, #d400d4 ); animation: animate 3s linear infinite; animation-delay: -1.5s; } span { position: absolute; inset: 5px; background: #0c1022; border-radius: 8px; z-index: 1; } h2 { position: relative; z-index: 2; color: #fff; font-size: 8em; } } </style>