-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnew_file.html
162 lines (138 loc) · 2.98 KB
/
new_file.html
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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>利用纯CSS实现头像旋转和发光的效果</title>
</head>
<style>
.chatPanel-toMin {
position: absolute;
top: 100px;
width: 65px;
height: 60px;
border-radius: 50% 0 0 50%;
background: #fff;
}
.user-avatar {
position: absolute;
right: 0;
top: 7px;
right: 8px;
width: 45px;
height: 45px;
border-radius: 50%;
border: 1px solid #ddd;
}
.user-avatar img {
width: 100%;
height: 100%;
border-radius: 50%;
}
/*spin旋转*/
.user-avatar:hover {
/* -webkit-animation: spin 5s infinite linear;
animation: spin 5s infinite linear */
transform: rotate(666turn);
transition-delay: 1s;
transition-property: all;
transition-duration: 59s;
transition-timing-function: cubic-bezier(0.34, 0, 0.84, 1);
}
.user-avatar:hover {
/* -webkit-transition: all 1s;
-moz-transition: all 1s;
transition: all 1s; */
-webkit-animation: sparkle linear 2s 1.5s infinite;
-moz-animation: sparkle linear 2s 1.5s infinite;
animation: sparkle linear 2s 1.5s infinite;
}
@keyframes spin {
0% {
-webkit-transform: rotate(0deg);
transform: rotate(0deg)
}
100% {
-webkit-transform: rotate(360deg);
transform: rotate(360deg)
}
}
/*sparkle 闪耀*/
.sparkle {
}
@-webkit-keyframes sparkle {
0% {
box-shadow: 0 0 0px 0 #b2ff1a;
-webkit-transform: rotate(0deg);
transform: rotate(0deg)
}
50% {
box-shadow: 0 0 20px 0 #1affff;
}
100% {
box-shadow: 0 0 0px 0 #b2ff1a;
-webkit-transform: rotate(359deg);
transform: rotate(359deg)
}
}
@-moz-keyframes sparkle {
0% {
box-shadow: 0 0 0px 0 #b2ff1a;
-webkit-transform: rotate(0deg);
transform: rotate(0deg)
}
50% {
box-shadow: 0 0 20px 0 #1affff;
}
100% {
box-shadow: 0 0 0px 0 #b2ff1a;
-webkit-transform: rotate(359deg);
transform: rotate(359deg)
}
}
@-o-keyframes sparkle {
0% {
box-shadow: 0 0 0px 0 #b2ff1a;
-webkit-transform: rotate(0deg);
transform: rotate(0deg)
}
50% {
box-shadow: 0 0 20px 0 #1affff;
}
100% {
box-shadow: 0 0 0px 0 #b2ff1a;
-webkit-transform: rotate(359deg);
transform: rotate(359deg)
}
}
@keyframes sparkle {
0% {
box-shadow: 0 0 0px 0 #b2ff1a;
-webkit-transform: rotate(0deg);
transform: rotate(0deg)
}
50% {
box-shadow: 0 0 20px 0 #1affff;
}
100% {
box-shadow: 0 0 0px 0 #b2ff1a;
-webkit-transform: rotate(359deg);
transform: rotate(359deg)
}
}
</style>
</p>
<p>
<body>
</p>
<p>
<div>
<div class="chatPanel-toMin">
<div class="user-avatar">
<img class="" src="http://internalhbyj.huabenyaoji.com/611604908040609792.jpg" alt="">
</div>
</div>
</div>
</p>
<p>
</body>
</html>