新增动画

This commit is contained in:
shengchanzhe 2023-10-13 15:03:27 +08:00
parent 7f6517670b
commit bbb8eca179

View File

@ -0,0 +1,36 @@
<template>
<div />
</template>
<style scoped>
div {
width: 2.5em;
height: 3em;
border: 3px solid transparent;
border-top-color: #fc2f70;
border-bottom-color: #fc2f70;
border-radius: 50%;
animation: spin-stretch 2s ease infinite;
}
@keyframes spin-stretch {
50% {
transform: rotate(360deg) scale(0.4, 0.33);
border-width: 8px;
}
100% {
transform: rotate(720deg) scale(1, 1);
border-width: 3px;
}
}
@keyframes fill {
25%,
50% {
transform: scaleY(0);
}
100% {
transform: scaleY(1);
}
}
</style>