ufo-no-item.vue
1.68 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
<template>
<div class="no-item">
<div class="no-item-bg">
<div class="no-item-bg-top"></div>
<div class="no-item-bg-bottom"></div>
</div>
<p>{{ tip }}</p>
</div>
</template>
<script>
export default {
name: "UfoNoItem",
props: {
tip: String
}
};
</script>
<style lang="scss" scoped>
.no-item {
position: relative;
display: flex;
width: 100%;
min-height: 8rem;
flex-direction: column;
align-items: center;
justify-content: center;
.no-item-bg {
position: relative;
width: 186px;
height: 242px;
background-size: 100% 100%;
&-top {
position: absolute;
width: 100%;
height: 100%;
left: 0;
top: 0;
z-index: 2;
background-image: url("~statics/image/order/ufo-empty-top.png");
background-size: 100% 100%;
animation: animateUFO 3s linear infinite;
}
&-bottom {
position: absolute;
width: 100%;
height: 100%;
left: 0;
top: 0;
z-index: 1;
background-image: url("~statics/image/order/ufo-empty-bottom.png");
background-size: 100% 100%;
animation: animateLight 3s linear infinite;
}
}
p {
color: #999;
line-height: 32px;
}
}
@keyframes animateUFO {
0% {
transform: translateY(0px);
}
25% {
transform: translateY(10px);
}
50% {
transform: translateY(0px);
}
75% {
transform: translateY(10px);
}
100% {
transform: translateY(0px);
}
}
@keyframes animateLight {
0% {
transform: skewX(0deg);
}
25% {
transform: skewX(10deg);
}
50% {
transform: skewX(0deg);
}
75% {
transform: skewX(-10deg);
}
100% {
transform: skewX(0deg);
}
}
</style>