网站加载中loading..样式五代码介绍

621 ℃

css代码:

复制代码body {
  background:#1b1d1f;
  display:flex;
  justify-content:center;
  align-items:center;
  height:100vh;
  padding:0;
  margin:0
}
.loader {
  position:absolute;
  left:50%;
  top:50%;
  width:48.2842712474619px;
  height:48.2842712474619px;
  margin-left:-24.14213562373095px;
  margin-top:-24.14213562373095px;
  border-radius:100%;
  -webkit-animation-name:loader;
  animation-name:loader;
  -webkit-animation-iteration-count:infinite;
  animation-iteration-count:infinite;
  -webkit-animation-timing-function:linear;
  animation-timing-function:linear;
  -webkit-animation-duration:4s;
  animation-duration:4s
}
.loader .side {
  display:block;
  width:6px;
  height:20px;
  background-color:#f1404b;
  margin:2px;
  position:absolute;
  border-radius:50%;
  -webkit-animation-duration:1.5s;
  animation-duration:1.5s;
  -webkit-animation-iteration-count:infinite;
  animation-iteration-count:infinite;
  -webkit-animation-timing-function:ease;
  animation-timing-function:ease
}
.loader .side:nth-child(1),.loader .side:nth-child(5) {
  transform:rotate(0deg);
  -webkit-animation-name:rotate0;
  animation-name:rotate0
}
.loader .side:nth-child(3),.loader .side:nth-child(7) {
  transform:rotate(90deg);
  -webkit-animation-name:rotate90;
  animation-name:rotate90
}
.loader .side:nth-child(2),.loader .side:nth-child(6) {
  transform:rotate(45deg);
  -webkit-animation-name:rotate45;
  animation-name:rotate45
}
.loader .side:nth-child(4),.loader .side:nth-child(8) {
  transform:rotate(135deg);
  -webkit-animation-name:rotate135;
  animation-name:rotate135
}
.loader .side:nth-child(1) {
  top:24.14213562373095px;
  left:48.2842712474619px;
  margin-left:-3px;
  margin-top:-10px;
  -webkit-animation-delay:0;
  animation-delay:0
}
.loader .side:nth-child(2) {
  top:41.21320343109277px;
  left:41.21320343109277px;
  margin-left:-3px;
  margin-top:-10px;
  -webkit-animation-delay:0;
  animation-delay:0
}
.loader .side:nth-child(3) {
  top:48.2842712474619px;
  left:24.14213562373095px;
  margin-left:-3px;
  margin-top:-10px;
  -webkit-animation-delay:0;
  animation-delay:0
}
.loader .side:nth-child(4) {
  top:41.21320343109277px;
  left:7.07106781636913px;
  margin-left:-3px;
  margin-top:-10px;
  -webkit-animation-delay:0;
  animation-delay:0
}
.loader .side:nth-child(5) {
  top:24.14213562373095px;
  left:0px;
  margin-left:-3px;
  margin-top:-10px;
  -webkit-animation-delay:0;
  animation-delay:0
}
.loader .side:nth-child(6) {
  top:7.07106781636913px;
  left:7.07106781636913px;
  margin-left:-3px;
  margin-top:-10px;
  -webkit-animation-delay:0;
  animation-delay:0
}
.loader .side:nth-child(7) {
  top:0px;
  left:24.14213562373095px;
  margin-left:-3px;
  margin-top:-10px;
  -webkit-animation-delay:0;
  animation-delay:0
}
.loader .side:nth-child(8) {
  top:7.07106781636913px;
  left:41.21320343109277px;
  margin-left:-3px;
  margin-top:-10px;
  -webkit-animation-delay:0;
  animation-delay:0
}
@-webkit-keyframes rotate0 {
  0% {
  transform:rotate(0deg)
}
60% {
  transform:rotate(180deg)
}
100% {
  transform:rotate(180deg)
}
}@keyframes rotate0 {
  0% {
  transform:rotate(0deg)
}
60% {
  transform:rotate(180deg)
}
100% {
  transform:rotate(180deg)
}
}@-webkit-keyframes rotate90 {
  0% {
  transform:rotate(90deg)
}
60% {
  transform:rotate(270deg)
}
100% {
  transform:rotate(270deg)
}
}@keyframes rotate90 {
  0% {
  transform:rotate(90deg)
}
60% {
  transform:rotate(270deg)
}
100% {
  transform:rotate(270deg)
}
}@-webkit-keyframes rotate45 {
  0% {
  transform:rotate(45deg)
}
60% {
  transform:rotate(225deg)
}
100% {
  transform:rotate(225deg)
}
}@keyframes rotate45 {
  0% {
  transform:rotate(45deg)
}
60% {
  transform:rotate(225deg)
}
100% {
  transform:rotate(225deg)
}
}@-webkit-keyframes rotate135 {
  0% {
  transform:rotate(135deg)
}
60% {
  transform:rotate(315deg)
}
100% {
  transform:rotate(315deg)
}
}@keyframes rotate135 {
  0% {
  transform:rotate(135deg)
}
60% {
  transform:rotate(315deg)
}
100% {
  transform:rotate(315deg)
}
}@-webkit-keyframes loader {
  0% {
  transform:rotate(0deg)
}
100% {
  transform:rotate(360deg)
}
}@keyframes loader {
  0% {
  transform:rotate(0deg)
}
100% {
  transform:rotate(360deg)
}
}
  • 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
  • 163
  • 164
  • 165
  • 166
  • 167
  • 168
  • 169
  • 170
  • 171
  • 172
  • 173
  • 174
  • 175
  • 176
  • 177
  • 178
  • 179
  • 180
  • 181
  • 182
  • 183
  • 184
  • 185
  • 186
  • 187
  • 188
  • 189
  • 190
  • 191
  • 192
  • 193
  • 194
  • 195
  • 196
  • 197
  • 198
  • 199
  • 200
  • 201
  • 202
  • 203
  • 204
  • 205
  • 206
  • 207
  • 208
  • 209
  • 210
  • 211
  • 212
  • 213
  • 214
  • 215
  • 216
  • 217
  • 218
  • 219
  • 220
  • 221

html代码:

复制代码<div id="loading">
  <div class="loader">
    <div class="side"></div>
    <div class="side"></div>
    <div class="side"></div>
    <div class="side"></div>
    <div class="side"></div>
    <div class="side"></div>
    <div class="side"></div>
    <div class="side"></div>
  </div>
</div> 
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12

点击查看效果

网站加载中loading..样式四代码介绍

网站加载中loading..样式三代码介绍

网站加载中loading..样式二代码介绍

网站加载中样式loading..代码介绍

如何利用svg做一个有趣的loading动画加载

标签: css网站加载, loading

上面是“网站加载中loading..样式五代码介绍”的全面内容,想了解更多关于 前端知识 内容,请继续关注web建站教程。

当前网址:https://m.ipkd.cn/webs_13326.html

声明:本站提供的所有资源部分来自互联网,如果有侵犯您的版权或其他权益,请发送到邮箱:admin@ipkd.cn,我们会在看到邮件的第一时间内为您处理!

帝国cms技巧之如何解决打开升级页面...e/update/i
vuejs深度监听代码介绍
vuejs实现element-plus组件的二次封装
js如何禁止文字被选中
帝国cms技巧之一个判断字段输出语句