shengchanzhe c4ce860e6a 更新
2023-10-14 13:31:56 +08:00

58 lines
875 B
Vue

<template>
<div style="position: relative;">
<div class="div" />
<p class="text">
AI播放中
</p>
</div>
</template>
<style scoped>
.text{
display: block;
width: 100%;
font-size: 1.5em;
text-align: center;
position: absolute;
left: 0;
bottom: -2em;
}
.div {
display: flex;
width: 20em;
height: 20em;
border: 1em solid transparent;
border-top-color: #3cefff;
border-bottom-color: #3cefff;
border-radius: 50%;
animation: spin 1.5s linear infinite;
}
.div:before {
content: '';
display: block;
margin: auto;
width: 10em;
height: 10em;
border: 1em solid #3cefff;
border-radius: 50%;
animation: pulse 1s alternate ease-in-out infinite;
}
@keyframes spin {
to {
transform: rotate(360deg);
}
}
@keyframes pulse {
from {
transform: scale(0.5);
}
to {
transform: scale(1);
}
}
</style>