|
@@ -56,6 +56,16 @@
|
|
|
muted
|
|
|
@ended="workState = 'done'"
|
|
|
/>
|
|
|
+ <img
|
|
|
+ v-show="workState === 'working' && innerState !== 0"
|
|
|
+ class="tool"
|
|
|
+ :style="{
|
|
|
+ animationPlayState: (workState === 'working' && innerState !== 0) ? 'running' : 'paused',
|
|
|
+ }"
|
|
|
+ :src="toolList[3].url"
|
|
|
+ alt=""
|
|
|
+ draggable="false"
|
|
|
+ >
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
@@ -78,11 +88,11 @@ watch(selectedToolNum, (vNew) => {
|
|
|
if (vNew === 1) {
|
|
|
setTimeout(() => {
|
|
|
workState.value = 'working'
|
|
|
- }, 500)
|
|
|
+ }, 1000)
|
|
|
} else if (vNew === 2) {
|
|
|
setTimeout(() => {
|
|
|
workState.value = 'working'
|
|
|
- }, 500)
|
|
|
+ }, 1000)
|
|
|
}
|
|
|
})
|
|
|
|
|
@@ -136,5 +146,55 @@ watch(workState, (vNew) => {
|
|
|
top: calc(169 / v-bind('windowSizeWhenDesignForRef') * v-bind('windowSizeInCssForRef'));;
|
|
|
width: 97.5%;
|
|
|
}
|
|
|
+ >img.tool{
|
|
|
+ position: absolute;
|
|
|
+ transform: translate(-10%, -50%) rotate(45deg);
|
|
|
+ width: calc(85 / v-bind('windowSizeWhenDesignForRef') * v-bind('windowSizeInCssForRef'));
|
|
|
+ animation-name: tool-move;
|
|
|
+ animation-delay: 0.2s;
|
|
|
+ animation-duration: 5s;
|
|
|
+ animation-timing-function: linear;
|
|
|
+ animation-fill-mode: forwards;
|
|
|
+ left: 15%;
|
|
|
+ top: 15%;
|
|
|
+ }
|
|
|
+}
|
|
|
+@keyframes tool-move {
|
|
|
+ 5% {
|
|
|
+ left: 85%;
|
|
|
+ top: 15%;
|
|
|
+ }
|
|
|
+ 10% {
|
|
|
+ left: 15%;
|
|
|
+ top: 15%;
|
|
|
+ }
|
|
|
+ 15% {
|
|
|
+ left: 85%;
|
|
|
+ top: 15%;
|
|
|
+ }
|
|
|
+ 20% {
|
|
|
+ left: 15%;
|
|
|
+ top: 15%;
|
|
|
+ }
|
|
|
+ 25% {
|
|
|
+ left: 85%;
|
|
|
+ top: 15%;
|
|
|
+ }
|
|
|
+ 55% {
|
|
|
+ left: 0;
|
|
|
+ top: 70%;
|
|
|
+ }
|
|
|
+ 75% {
|
|
|
+ left: 90%;
|
|
|
+ top: 70%;
|
|
|
+ }
|
|
|
+ 80% {
|
|
|
+ left: 0;
|
|
|
+ top: 70%;
|
|
|
+ }
|
|
|
+ 100% {
|
|
|
+ left: 90%;
|
|
|
+ top: 70%;
|
|
|
+ }
|
|
|
}
|
|
|
</style>
|