<template>
<div>
<div class="circle"></div>
</div>
</template>
<script>
export default {
name: '',
data () {
return {
}
},
methods: {
}
}
</script>
<style lang="less" scoped>
.circle {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 100px;
height: 100px;
border-radius: 50%;
border: 10px solid rgba(255, 255, 255, .1);
// background-color: #fff;
border-top: 10px solid #fff;
animation: animate 1.5s infinite linear;
}
@keyframes animate {
0% {
transform: translate(-50%, -50%) rotate(0deg);
}
100% {
transform: translate(-50%, -50%) rotate(360deg);
}
}
</style>
CSS einfache Ladeanimation
Ich denke du magst
Origin blog.csdn.net/LRQQHM/article/details/131946592
Empfohlen
Rangfolge