|
@@ -4,13 +4,13 @@
|
4
|
4
|
|
5
|
5
|
<template v-for="(item, inx) in flowers" :key="item.name">
|
6
|
6
|
<div
|
7
|
|
- class="flower animate__animated animate__fadeIn"
|
|
7
|
+ class="flower animate__animated animate__fadeIn animate__faster"
|
8
|
8
|
:style="{left: item.left, top: item.top, animationDelay: `${(inx+1) * 200}ms`}"
|
9
|
9
|
>
|
10
|
10
|
<div>
|
11
|
11
|
<img
|
12
|
|
- class="flower animate__animated animate__fadeIn animate__infinite"
|
13
|
|
- :style="{animationDelay: `${2000}ms`, animationDuration: `${2 + inx * 10 % 7}s`}"
|
|
12
|
+ class="flower star"
|
|
13
|
+ :style="{animationDelay: `${3000 + inx % 8 * 1500}ms`, animationDuration: `${4}s`}"
|
14
|
14
|
src="/images/logo.png" alt="">
|
15
|
15
|
<!-- <img class="shine" src="/images/pg1/shine.png" alt=""> -->
|
16
|
16
|
<div class="country" :style="getTxtStyle(item)">{{item.name}}</div>
|
|
@@ -25,6 +25,8 @@
|
25
|
25
|
|
26
|
26
|
const flowers = ref([]);
|
27
|
27
|
|
|
28
|
+ const rand = () => Math.floor(Math.random() * 14) + 1;
|
|
29
|
+
|
28
|
30
|
const getTxtStyle = (item) => {
|
29
|
31
|
switch (item.direct) {
|
30
|
32
|
case 'top-left':
|
|
@@ -49,18 +51,18 @@
|
49
|
51
|
|
50
|
52
|
const countries = [
|
51
|
53
|
{ name: '中国', pos: [316,184], direct: 'top-left' },
|
52
|
|
- { name: '芬兰', pos: [190,79], direct: 'top' },
|
53
|
|
- { name: '英国', pos: [112,91], direct: 'top' },
|
54
|
|
- { name: '德国', pos: [135,110], direct: 'right' },
|
55
|
|
- { name: '瑞士', pos: [113,123], direct: 'left' },
|
56
|
|
- { name: '土耳其', pos: [156,153], direct: 'bottom' },
|
57
|
54
|
{ name: '韩国', pos: [348,181], direct: 'bottom' },
|
58
|
55
|
{ name: '日本', pos: [377,178], direct: 'top-right' },
|
59
|
|
- { name: '马来西亚', pos: [280,264], direct: 'right' },
|
60
|
56
|
{ name: '新加坡', pos: [295,280], direct: 'bottom' },
|
|
57
|
+ { name: '马来西亚', pos: [280,264], direct: 'right' },
|
|
58
|
+ { name: '芬兰', pos: [190,79], direct: 'top' },
|
61
|
59
|
{ name: '澳大利亚', pos: [364,351], direct: 'bottom' },
|
62
|
|
- { name: '新西兰', pos: [448,401], direct: 'bottom' },
|
|
60
|
+ { name: '土耳其', pos: [156,153], direct: 'bottom' },
|
|
61
|
+ { name: '德国', pos: [135,110], direct: 'right' },
|
63
|
62
|
{ name: '加拿大', pos: [609,124], direct: 'top' },
|
|
63
|
+ { name: '新西兰', pos: [448,401], direct: 'bottom' },
|
|
64
|
+ { name: '英国', pos: [112,91], direct: 'top' },
|
|
65
|
+ { name: '瑞士', pos: [113,123], direct: 'left' },
|
64
|
66
|
{ name: '美国', pos: [663,146], direct: 'bottom' },
|
65
|
67
|
];
|
66
|
68
|
|
|
@@ -122,5 +124,29 @@
|
122
|
124
|
transform: scale(1.2);
|
123
|
125
|
}
|
124
|
126
|
}
|
|
127
|
+
|
|
128
|
+ .star {
|
|
129
|
+ animation: star 2s ease-in-out infinite alternate;
|
|
130
|
+ }
|
|
131
|
+
|
|
132
|
+ @keyframes star {
|
|
133
|
+ 0% {
|
|
134
|
+ opacity: 1;
|
|
135
|
+ // transform: scale(0.8);
|
|
136
|
+ }
|
|
137
|
+
|
|
138
|
+ 40% {
|
|
139
|
+ opacity: 0.2;
|
|
140
|
+ }
|
|
141
|
+
|
|
142
|
+ 50% {
|
|
143
|
+ opacity: 1;
|
|
144
|
+ // transform: scale(1.2);
|
|
145
|
+ }
|
|
146
|
+
|
|
147
|
+ 90%, 100%{
|
|
148
|
+ opacity: 1;
|
|
149
|
+ }
|
|
150
|
+ }
|
125
|
151
|
}
|
126
|
152
|
</style>
|