新增动画

This commit is contained in:
shengchanzhe 2023-10-13 15:43:36 +08:00
parent 317051c867
commit e926218893
1 changed files with 55 additions and 0 deletions

View File

@ -0,0 +1,55 @@
<template>
<div class="loader">
<div class="outer" />
<div class="middle" />
<div class="inner" />
</div>
</template>
<style scoped>
.loader {
position: relative;
}
.outer,
.middle,
.inner {
border: 3px solid transparent;
border-top-color: #3cefff;
border-right-color: #3cefff;
border-radius: 50%;
position: absolute;
top: 50%;
left: 50%;
}
.outer {
width: 3.5em;
height: 3.5em;
margin-left: -1.75em;
margin-top: -1.75em;
animation: spin 2s linear infinite;
}
.middle {
width: 2.1em;
height: 2.1em;
margin-left: -1.05em;
margin-top: -1.05em;
animation: spin 1.75s linear reverse infinite;
}
.inner {
width: 0.8em;
height: 0.8em;
margin-left: -0.4em;
margin-top: -0.4em;
animation: spin 1.5s linear infinite;
}
@keyframes spin {
to {
transform: rotate(360deg);
}
}
</style>