-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbox.html
38 lines (38 loc) · 966 Bytes
/
box.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
<!--
* @Author: your name
* @Date: 2020-08-28 09:18:16
* @LastEditTime: 2020-08-28 10:01:09
* @LastEditors: Please set LastEditors
* @Description: In User Settings Edit
* @FilePath: \jsQuestion\box.html
-->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Document</title>
<style>
.bianseBorder {
height:100px;width:100px;box-sizing: border-box;
animation: myAnimation 4s infinite;
}
@keyframes myAnimation {
0% {border: 1px solid #29bfff; }
30% {
border: 1px solid #29bfff;
}
50% { border: 1px solid #29bfff; background: #14262e;}
100% {border: none;}
/*
from{border: 1px solid #29bfff;
background: #14262e;}
to{border: none;} */
}
</style>
</head>
<body>
<div class="bianseBorder" > </div>
</body>
</html>