|
@@ -42,14 +42,19 @@
|
|
query: $route.query,
|
|
query: $route.query,
|
|
})"
|
|
})"
|
|
/>
|
|
/>
|
|
- <div class="lion-wrapper">
|
|
|
|
|
|
+ <div
|
|
|
|
+ class="lion-wrapper"
|
|
|
|
+ >
|
|
<img
|
|
<img
|
|
class="lion"
|
|
class="lion"
|
|
- :src="require(`@/assets/images/lion-${sceneInfo.lionGender}-speaking.png`)"
|
|
|
|
|
|
+ :src="require(`@/assets/images/lion-${sceneInfo.lionGender}-${isLionWalking ? 'walking' : 'speaking'}.gif`)"
|
|
alt=""
|
|
alt=""
|
|
draggable="false"
|
|
draggable="false"
|
|
>
|
|
>
|
|
- <div class="speach-text-wrapper" />
|
|
|
|
|
|
+ <div
|
|
|
|
+ v-show="!isLionWalking"
|
|
|
|
+ class="speach-text-wrapper"
|
|
|
|
+ />
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
@@ -59,6 +64,7 @@ export default {
|
|
name: 'Level3View',
|
|
name: 'Level3View',
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
|
|
+ isLionWalking: true,
|
|
}
|
|
}
|
|
},
|
|
},
|
|
computed: {
|
|
computed: {
|
|
@@ -69,6 +75,9 @@ export default {
|
|
},
|
|
},
|
|
},
|
|
},
|
|
mounted() {
|
|
mounted() {
|
|
|
|
+ setTimeout(() => {
|
|
|
|
+ this.isLionWalking = false
|
|
|
|
+ }, 6000)
|
|
},
|
|
},
|
|
unmounted() {
|
|
unmounted() {
|
|
},
|
|
},
|
|
@@ -169,10 +178,13 @@ export default {
|
|
}
|
|
}
|
|
.lion-wrapper {
|
|
.lion-wrapper {
|
|
position: absolute;
|
|
position: absolute;
|
|
- left: 24px;
|
|
|
|
- bottom: 36px;
|
|
|
|
|
|
+ bottom: 50px;
|
|
width: 0;
|
|
width: 0;
|
|
height: 0;
|
|
height: 0;
|
|
|
|
+ animation-name: walk;
|
|
|
|
+ animation-duration: 6s;
|
|
|
|
+ animation-timing-function: cubic-bezier(.13,.23,.48,.86);
|
|
|
|
+ animation-fill-mode: forwards;
|
|
>img.lion {
|
|
>img.lion {
|
|
position: absolute;
|
|
position: absolute;
|
|
left: 0;
|
|
left: 0;
|
|
@@ -196,4 +208,13 @@ export default {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+@keyframes walk {
|
|
|
|
+ 0% {
|
|
|
|
+ left: -300px;
|
|
|
|
+ }
|
|
|
|
+ 100% {
|
|
|
|
+ left: 0px;
|
|
|
|
+ }
|
|
|
|
+}
|
|
</style>
|
|
</style>
|