This commit is contained in:
weipengfei 2023-10-13 15:11:02 +08:00
parent bbb8eca179
commit 317051c867
2 changed files with 11 additions and 9 deletions

View File

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

View File

@ -25,6 +25,7 @@ import indexBG from "@/components/animation/indexBG.vue"
import recording from "@/components/animation/recording.vue" import recording from "@/components/animation/recording.vue"
import inputing from "@/components/animation/inputing.vue" import inputing from "@/components/animation/inputing.vue"
import loding from "@/components/animation/loding.vue" import loding from "@/components/animation/loding.vue"
import lodingCir from "@/components/animation/lodingCir.vue"
import IatRecorder from '@/utils/test.js' import IatRecorder from '@/utils/test.js'
// import IatRecorder from '@/utils/larRcorder.js' // import IatRecorder from '@/utils/larRcorder.js'
@ -612,7 +613,8 @@ window.addEventListener('test', (e) => {
<transition mode="out-in" name="fade"> <transition mode="out-in" name="fade">
<inputing v-if="nowStatus=='input'" key="input"></inputing> <inputing v-if="nowStatus=='input'" key="input"></inputing>
<recording v-else-if="nowStatus=='record'" key="record"></recording> <recording v-else-if="nowStatus=='record'" key="record"></recording>
<loding v-else-if="nowStatus=='loding'" key="loding"></loding> <!-- <loding v-else-if="nowStatus=='loding'" key="loding"></loding> -->
<lodingCir v-else-if="nowStatus=='loding'" key="loding"></lodingCir>
</transition> </transition>
</indexBG> </indexBG>
<div class="flex flex-col w-full h-full" :style="{'max-width': maxWeight + 'px'}"> <div class="flex flex-col w-full h-full" :style="{'max-width': maxWeight + 'px'}">