条纹加载中.html
1.69 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
<html>
<head>
<style>
body, html {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  height: 100%;
}
body {
  background-repeat: no-repeat;
  background-position: center;
  background-image: radial-gradient(circle, #989898, #545454);
}
.container {
  width: 240px;
  margin: 20vh auto 0;
}
.container .warning {
  height: 60px;
}
.warning:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  height: 100%;
  border-radius: 10px;
  background-image: linear-gradient(pink,yellow 15%,transparent 60%,pink);
}
.warning {
  position: relative;
  background-color: yellow;
  border: 1px solid yellow;
  border-radius: 10px;
  box-shadow: 1vw 1vh 4vh rgba(255, 192, 203, 0.2);
  font-size:16px; 
  background-size: 3em 3em;
  background-image: 
  linear-gradient(-45deg,transparent 0em,
                    transparent 1em,
                    pink 1em,
					pink 2.1213em,	
                    transparent 2.1213em,
                    transparent 3.1213em,
                    pink 3.1213em	                    		
				);
  -webkit-animation: warning-animation 750ms infinite linear;
  -moz-animation: warning-animation 750ms infinite linear;
   animation: warning-animation 750ms infinite linear;
}
@-webkit-keyframes warning-animation {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 3em 0;
  }
}
@-moz-keyframes warning-animation {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 3em 0;
  }
}
@keyframes warning-animation {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 3em 0;
  }
}
</style>
</head>
<body>
	<div class="container">
		<div class="warning">
		</div>
	</div>
</body>
</html>