一个小动画,颠覆你的CSS世界观
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 | <! DOCTYPE html> < html > < head > < meta charset="UTF-8"> < title ></ title > < style type="text/css"> * { padding: 0px; margin: 0px; } .loadBlock { width: 104px; height: 84px; position: fixed; top: 43%; left: 50%; margin-left: -52px; text-align: center; z-index: 999; color: green; overflow: hidden; background:#6959CD; border-radius:5px ; } .loadBg { background: url(img/loadCartoon.png) 0 -80px no-repeat; width: 90px; height: 50px; margin: 11px auto 0; background-size: cover; animation: loadBg 1s infinite linear; -webkit-animation: loadBg 1s infinite linear; position: relative; z-index: 2; } @keyframes loadBg { 0% { left: -5.2rem; } 99.99% { left: 5.2rem; } 100% { left: -5.2rem; } } .loadCartoon { position: absolute; top: 0; left: 0.6rem; animation: loadCartoon 1s linear infinite alternate; -webkit-animation: loadCartoon 1s linear infinite alternate; z-index: 6; } @keyframes loadCartoon { 0% { top: 0.4rem; } 50% { top: 0rem; } 100% { top: 0.4rem; } } .loadHead { background: url(img/loadCartoon.png) no-repeat; width: 90px; height: 34px; position: absolute; left: 19px; top: 4px; z-index: 9; background-size: cover; } .loadBody { background: url(img/loadCartoon.png) 0 -34px no-repeat; width: 90px; height: 15px; position: absolute; left: 19px; top: 32.4px; z-index: 7; background-size: cover; } .loadDun { background: url(img/loadCartoon.png) 0 -49px no-repeat; width: 90px; height: 18px; position: absolute; left: 36.4px; top: 34px; z-index: 10; background-size: cover; } .loadCappa { background: url(img/loadCartoon.png) 0 -67px no-repeat; width: 90px; height: 11px; position: absolute; left: 46px; top: 28px; z-index: 8; background-size: cover; animation: loadCappa 1s ease-in-out 0s infinite; -webkit-animation: loadCappa 1s ease-in-out 0s infinite; transform-origin: 0px 5px 20px; -webkit-transform-origin: 0px 5px 20px; } @keyframes loadCappa { 0% { transform: rotate(0deg); -webkit-transform: rotate(0deg); } 50% { transform: rotate(18deg); -webkit-transform: rotate(18deg); } 100% { transform: rotate(0deg); -webkit-transform: rotate(0deg); } } .loadCon { color: #fff; font-size: 12px; text-align: center; line-height: 18px; letter-spacing: 2px; position: relative; z-index: 4; } .backcolor { position: absolute; top: 0; left: 0; width: 100%; height: 100%; /*background: black;*/ opacity: 0.5; border-radius: 5%; -webkit-border-radius: 5%; } </ style > </ head > < body > < div class="loadBlock"> < div class="loadBg"></ div > < div class="loadCartoon"> < div class="loadHead"></ div > < div class="loadBody"></ div > < div class="loadDun"></ div > < div class="loadCappa"></ div > </ div > < p class="loadCon">加载中...</ p > < div class="backcolor"></ div > </ div > </ body > </ html > |
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】凌霞软件回馈社区,博客园 & 1Panel & Halo 联合会员上线
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】博客园社区专享云产品让利特惠,阿里云新客6.5折上折
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· Java 中堆内存和栈内存上的数据分布和特点
· 开发中对象命名的一点思考
· .NET Core内存结构体系(Windows环境)底层原理浅谈
· C# 深度学习:对抗生成网络(GAN)训练头像生成模型
· .NET 适配 HarmonyOS 进展
· 如何给本地部署的DeepSeek投喂数据,让他更懂你
· 超详细,DeepSeek 接入PyCharm实现AI编程!(支持本地部署DeepSeek及官方Dee
· 用 DeepSeek 给对象做个网站,她一定感动坏了
· .NET 8.0 + Linux 香橙派,实现高效的 IoT 数据采集与控制解决方案
· .NET中 泛型 + 依赖注入 的实现与应用