• 2022-纯css3飞翔的小鸟


    在这里插入图片描述
    在这里插入图片描述
    在这里插入图片描述

    DOCTYPE html>
    <html lang="en">
      <head>
        <meta charset="UTF-8" />
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="viewport" content="width=device-width, initial-scale=1.0" />
        <title>飞翔的小鸟title>
        <style>
          body {
            background: #eef;
            height: 100vh;
            overflow: hidden;
            display: flex;
            justify-content: center;
            align-items: center;
          }
          #sky {
            margin-top: -60px;
            perspective: 400px;
            filter: drop-shadow(0px 150px 10px rgba(0, 0, 0, 0.2));
          }
          @-moz-document url-prefix() {
            #sky {
              filter: none;
            }
          }
          #sky div {
            transform-style: preserve-3d;
          }
          #sky .bird {
            -webkit-animation: fly 10000ms linear infinite;
            animation: fly 10000ms linear infinite;
          }
          #sky .bird .wind {
            position: absolute;
            left: 50%;
            width: 4px;
            height: 200px;
            margin-left: -2px;
            border-radius: 999px;
            overflow: hidden;
          }
          #sky .bird .wind:nth-child(1) {
            transform: translate3d(189px, -97px, 82px) rotateY(90deg);
          }
          #sky .bird .wind:nth-child(1)::before {
            content: "";
            position: absolute;
            width: 4px;
            height: 300px;
            background: rgba(100, 200, 207, 0.3);
            border-radius: 999px;
            transform: translateY(-300px);
            -webkit-animation: wind 2331ms 1268ms linear infinite;
            animation: wind 2331ms 1268ms linear infinite;
          }
          #sky .bird .wind:nth-child(2) {
            transform: translate3d(132px, 5px, 70px) rotateY(90deg);
          }
          #sky .bird .wind:nth-child(2)::before {
            content: "";
            position: absolute;
            width: 4px;
            height: 300px;
            background: rgba(100, 200, 254, 0.3);
            border-radius: 999px;
            transform: translateY(-300px);
            -webkit-animation: wind 2438ms 1537ms linear infinite;
            animation: wind 2438ms 1537ms linear infinite;
          }
          #sky .bird .wind:nth-child(3) {
            transform: translate3d(65px, -132px, -5px) rotateY(90deg);
          }
          #sky .bird .wind:nth-child(3)::before {
            content: "";
            position: absolute;
            width: 4px;
            height: 300px;
            background: rgba(100, 200, 17, 0.3);
            border-radius: 999px;
            transform: translateY(-300px);
            -webkit-animation: wind 2613ms 2531ms linear infinite;
            animation: wind 2613ms 2531ms linear infinite;
          }
          #sky .bird .wind:nth-child(4) {
            transform: translate3d(-179px, 70px, -25px) rotateY(90deg);
          }
          #sky .bird .wind:nth-child(4)::before {
            content: "";
            position: absolute;
            width: 4px;
            height: 300px;
            background: rgba(100, 200, 124, 0.3);
            border-radius: 999px;
            transform: translateY(-300px);
            -webkit-animation: wind 1421ms 1690ms linear infinite;
            animation: wind 1421ms 1690ms linear infinite;
          }
          #sky .bird .wind:nth-child(5) {
            transform: translate3d(142px, 66px, -87px) rotateY(90deg);
          }
          #sky .bird .wind:nth-child(5)::before {
            content: "";
            position: absolute;
            width: 4px;
            height: 300px;
            background: rgba(100, 200, 127, 0.3);
            border-radius: 999px;
            transform: translateY(-300px);
            -webkit-animation: wind 1639ms 4788ms linear infinite;
            animation: wind 1639ms 4788ms linear infinite;
          }
          #sky .bird .wind:nth-child(6) {
            transform: translate3d(56px, -66px, -72px) rotateY(90deg);
          }
          #sky .bird .wind:nth-child(6)::before {
            content: "";
            position: absolute;
            width: 4px;
            height: 300px;
            background: rgba(100, 200, 147, 0.3);
            border-radius: 999px;
            transform: translateY(-300px);
            -webkit-animation: wind 1856ms 1426ms linear infinite;
            animation: wind 1856ms 1426ms linear infinite;
          }
          #sky .bird .wind:nth-child(7) {
            transform: translate3d(183px, 92px, 74px) rotateY(90deg);
          }
          #sky .bird .wind:nth-child(7)::before {
            content: "";
            position: absolute;
            width: 4px;
            height: 300px;
            background: rgba(100, 200, 31, 0.3);
            border-radius: 999px;
            transform: translateY(-300px);
            -webkit-animation: wind 1585ms 3969ms linear infinite;
            animation: wind 1585ms 3969ms linear infinite;
          }
          #sky .bird .wind:nth-child(8) {
            transform: translate3d(-13px, -33px, 28px) rotateY(90deg);
          }
          #sky .bird .wind:nth-child(8)::before {
            content: "";
            position: absolute;
            width: 4px;
            height: 300px;
            background: rgba(100, 200, 60, 0.3);
            border-radius: 999px;
            transform: translateY(-300px);
            -webkit-animation: wind 1693ms 3611ms linear infinite;
            animation: wind 1693ms 3611ms linear infinite;
          }
          #sky .bird .wind:nth-child(9) {
            transform: translate3d(-68px, -73px, 88px) rotateY(90deg);
          }
          #sky .bird .wind:nth-child(9)::before {
            content: "";
            position: absolute;
            width: 4px;
            height: 300px;
            background: rgba(100, 200, 34, 0.3);
            border-radius: 999px;
            transform: translateY(-300px);
            -webkit-animation: wind 2249ms 3544ms linear infinite;
            animation: wind 2249ms 3544ms linear infinite;
          }
          #sky .bird .wind:nth-child(10) {
            transform: translate3d(174px, -74px, 8px) rotateY(90deg);
          }
          #sky .bird .wind:nth-child(10)::before {
            content: "";
            position: absolute;
            width: 4px;
            height: 300px;
            background: rgba(100, 200, 158, 0.3);
            border-radius: 999px;
            transform: translateY(-300px);
            -webkit-animation: wind 1104ms 4095ms linear infinite;
            animation: wind 1104ms 4095ms linear infinite;
          }
          #sky .bird .wind:nth-child(11) {
            transform: translate3d(-174px, 122px, 20px) rotateY(90deg);
          }
          #sky .bird .wind:nth-child(11)::before {
            content: "";
            position: absolute;
            width: 4px;
            height: 300px;
            background: rgba(100, 200, 116, 0.3);
            border-radius: 999px;
            transform: translateY(-300px);
            -webkit-animation: wind 1100ms 2546ms linear infinite;
            animation: wind 1100ms 2546ms linear infinite;
          }
          #sky .bird_body {
            position: relative;
            width: 30px;
            height: 40px;
            background: #70addd;
          }
          #sky .bird_head {
            position: absolute;
            top: -30px;
            border-right: 15px solid transparent;
            border-bottom: 30px solid #6b83fa;
            border-left: 15px solid transparent;
            transform-origin: 50% 100%;
            transform: rotateX(-20deg);
          }
          #sky .bird_wing_left {
            position: absolute;
            left: -30px;
            height: 30px;
            border-right: 30px solid #a399d1;
            border-bottom: 10px solid transparent;
            transform-origin: 100% 0;
            -webkit-animation: wingLeft 1000ms cubic-bezier(0.36, 0.1, 0.16, 1)
              infinite alternate;
            animation: wingLeft 1000ms cubic-bezier(0.36, 0.1, 0.16, 1) infinite
              alternate;
          }
          #sky .bird_wing_left_top {
            position: absolute;
            left: -30px;
            border-right: 30px solid #929ccf;
            border-bottom: 30px solid transparent;
            transform-origin: 100% 0;
            -webkit-animation: wingLeft 1000ms
              cubic-bezier(0.545, 0.08, 0.52, 0.975) infinite alternate;
            animation: wingLeft 1000ms cubic-bezier(0.545, 0.08, 0.52, 0.975)
              infinite alternate;
          }
          #sky .bird_wing_right {
            position: absolute;
            left: 30px;
            height: 30px;
            border-left: 30px solid #8567f0;
            border-bottom: 10px solid transparent;
            transform-origin: 0 0;
            -webkit-animation: wingRight 1000ms cubic-bezier(0.36, 0.1, 0.16, 1)
              infinite alternate;
            animation: wingRight 1000ms cubic-bezier(0.36, 0.1, 0.16, 1) infinite
              alternate;
          }
          #sky .bird_wing_right_top {
            position: absolute;
            border-left: 30px solid #c0a9e0;
            border-bottom: 30px solid transparent;
            transform-origin: 0 0;
            -webkit-animation: wingRight 1000ms
              cubic-bezier(0.545, 0.08, 0.52, 0.975) infinite alternate;
            animation: wingRight 1000ms cubic-bezier(0.545, 0.08, 0.52, 0.975)
              infinite alternate;
          }
          #sky .bird_tail_left {
            position: absolute;
            top: 40px;
            border-right: 30px solid transparent;
            border-top: 40px solid #74a3ff;
            transform-origin: 50% 0;
            transform: rotateX(-20deg);
          }
          #sky .bird_tail_right {
            position: absolute;
            top: 40px;
            border-left: 30px solid transparent;
            border-top: 40px solid #a3c8ce;
            transform-origin: 50% 0;
            transform: rotateX(-20deg);
          }
    
         @-webkit-keyframes fly {
            0% {
              transform: rotateX(-120deg) rotateZ(0deg) rotateX(10deg);
            }
            100% {
              transform: rotateX(-120deg) rotateZ(360deg) rotateX(10deg);
            }
          }
    
          @keyframes fly {
            0% {
              transform: rotateX(-120deg) rotateZ(0deg) rotateX(10deg);
            }
            100% {
              transform: rotateX(-120deg) rotateZ(360deg) rotateX(10deg);
            }
          }
          @-webkit-keyframes wingLeft {
            0% {
              transform: rotateY(-40deg);
            }
            100% {
              transform: rotateY(40deg);
            }
          }
          @keyframes wingLeft {
            0% {
              transform: rotateY(-40deg);
            }
            100% {
              transform: rotateY(40deg);
            }
          }
          @-webkit-keyframes wingRight {
            0% {
              transform: rotateY(40deg);
            }
            100% {
              transform: rotateY(-40deg);
            }
          }
          @keyframes wingRight {
            0% {
              transform: rotateY(40deg);
            }
            100% {
              transform: rotateY(-40deg);
            }
          }
          @-webkit-keyframes wind {
            0% {
              transform: translateY(-300px);
            }
            100% {
              transform: translateY(200px);
            }
          }
          @keyframes wind {
            0% {
              transform: translateY(-300px);
            }
            100% {
              transform: translateY(200px);
            }
          }
        style>
      head>
      <body>
        <div id="sky">
          <div class="bird">
            <div class="wind">div>
            <div class="wind">div>
            <div class="wind">div>
            <div class="wind">div>
            <div class="wind">div>
            <div class="wind">div>
            <div class="wind">div>
            <div class="wind">div>
            <div class="wind">div>
            <div class="wind">div>
            <div class="bird_body">
              <div class="bird_head">div>
              <div class="bird_wing_left">
                <div class="bird_wing_left_top">div>
              div>
              <div class="bird_wing_right">
                <div class="bird_wing_right_top">div>
              div>
              <div class="bird_tail_left">div>
              <div class="bird_tail_right">div>
            div>
          div>
        div>
      body>
    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
    • 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
    • 222
    • 223
    • 224
    • 225
    • 226
    • 227
    • 228
    • 229
    • 230
    • 231
    • 232
    • 233
    • 234
    • 235
    • 236
    • 237
    • 238
    • 239
    • 240
    • 241
    • 242
    • 243
    • 244
    • 245
    • 246
    • 247
    • 248
    • 249
    • 250
    • 251
    • 252
    • 253
    • 254
    • 255
    • 256
    • 257
    • 258
    • 259
    • 260
    • 261
    • 262
    • 263
    • 264
    • 265
    • 266
    • 267
    • 268
    • 269
    • 270
    • 271
    • 272
    • 273
    • 274
    • 275
    • 276
    • 277
    • 278
    • 279
    • 280
    • 281
    • 282
    • 283
    • 284
    • 285
    • 286
    • 287
    • 288
    • 289
    • 290
    • 291
    • 292
    • 293
    • 294
    • 295
    • 296
    • 297
    • 298
    • 299
    • 300
    • 301
    • 302
    • 303
    • 304
    • 305
    • 306
    • 307
    • 308
    • 309
    • 310
    • 311
    • 312
    • 313
    • 314
    • 315
    • 316
    • 317
    • 318
    • 319
    • 320
    • 321
    • 322
    • 323
    • 324
    • 325
    • 326
    • 327
    • 328
    • 329
    • 330
    • 331
    • 332
    • 333
    • 334
    • 335
    • 336
    • 337
    • 338
    • 339
    • 340
    • 341
    • 342
    • 343
    • 344
    • 345
    • 346
    • 347
    • 348
    • 349
    • 350
    • 351
    • 352
    • 353
    • 354
    • 355
    • 356
    • 357
    • 358
    • 359
    • 360
    • 361
    • 362
    • 363
    • 364
    • 365
    • 366
    • 367
    • 368
    • 369
  • 相关阅读:
    PixelSNAIL论文代码学习(2)——门控残差网络的实现
    [附源码]Python计算机毕业设计SSM联动共享汽车管理系统(程序+LW)
    基于JavaWeb的汽车在线租赁管理系统
    K8S:K8S自动化运维容器Docker集群
    Linux centos安装SQL Server数据库,结合cpolar内网穿透实现公网访问
    微服务架构分布式事务管理问题
    开发H5程序或者小程序的时候,后端Web API项目在IISExpress调试中使用IP地址,便于开发调试
    老卫带你学---leetcode刷题(4. 寻找两个正序数组的中位数)
    webpack【实用教程】
    前端项目如何找到所有未被引用的文件
  • 原文地址:https://blog.csdn.net/itwangyang520/article/details/127747147