分类分类
更新时间:2026-03-11 20:15:08作者:zy
这篇文章主要介绍了css制作超萌吃豆豆加载动画效果,需要的朋友可以参考下
豆豆加载效果

point_down:html代码:
<div class="demo">
<div class="pacman"></div>
<div class="dot"></div>
point_down:css代码:
<style>
@-webkit-keyframes up {
0%, 100% { transform: rotate(0); }
50% { transform: rotate(-30deg); }
}@-moz-keyframes up {
0%, 100% { transform: rotate(0); }
50% { transform: rotate(-30deg); }
}@-o-keyframes up {
0%, 100% { transform: rotate(0); }
50% { transform: rotate(-30deg); }
}@keyframes up {
0%, 100% { transform: rotate(0); }
50% { transform: rotate(-30deg); }
}@-webkit-keyframes down {
0%, 100% { transform: rotate(0); }
50% { transform: rotate(30deg); }
}@-moz-keyframes down {
0%, 100% { transform: rotate(0); }
50% { transform: rotate(30deg); }
} @-o-keyframes down {
0%, 100% { transform: rotate(0); }
50% { transform: rotate(30deg); }
}@keyframes down {
0%, 100% { transform: rotate(0); }
50% { transform: rotate(30deg); }
} @-webkit-keyframes r-to-l {
100% { margin-left: -1px; }
} @-moz-keyframes r-to-l {
100% { margin-left: -1px; }
} @-o-keyframes r-to-l {
100% { margin-left: -1px; }
} @keyframes r-to-l {
100% { margin-left: -1px; }
} body {
background: #000;
overflow: hidden;
margin: 0;
}
body .pacman:before, body .pacman:after {
content: '';
position: absolute;
background: #FFC107;
width: 100px;
height: 50px;
left: 50%;
top: 50%;
margin-left: -50px;
margin-top: -50px;
border-radius: 50px 50px 0 0;
-webkit-animation: up 0.4s infinite;
-moz-animation: up 0.4s infinite;
-o-animation: up 0.4s infinite;
animation: up 0.4s infinite;
} body .pacman:after {
margin-top: -1px;
border-radius: 0 0 50px 50px;
-webkit-animation: down 0.4s infinite;
-moz-animation: down 0.4s infinite;
-o-animation: down 0.4s infinite;
animation: down 0.4s infinite;
} body .dot {
position: absolute;
left: 50%;
top: 50%;
width: 10px;
height: 10px;
margin-top: -5px;
margin-left: 30px;
border-radius: 50%;
background: #ccc; z-index: -1;
box-shadow: 30px 0 0 #ccc, 60px 0 0 #ccc, 90px 0 0 #ccc, 120px 0 0 #ccc, 150px 0 0 #ccc;
-webkit-animation: r-to-l 0.4s infinite;
-moz-animation: r-to-l 0.4s infinite;
-o-animation: r-to-l 0.4s infinite;
animation: r-to-l 0.4s infinite;
}
</style>
总结
以上所述是小编给大家介绍的css制作超萌吃豆豆加载动画效果,希望对大家有所帮助。
相关
遮天帝路争锋手游角色扮演266.95 MBv1.12026-03-11
下载深海迷航冰点之下手机版角色扮演2.08Gv1.22.549392026-03-11
下载旺商聊App社交通讯100.11 MBv3.6.32026-03-11
下载火箭沙盒App实用工具37.4 MBv1.2.62026-03-11
下载免费刷短剧漫剧影音播放111.08 MBv1.0.12026-03-11
下载免费漫剧大全APP影音播放93.03 MBv1.0.02026-03-11
下载全免漫剧看短剧影音播放103.79 MBv1.0.12026-03-11
下载武将无双0.1折版策略游戏605.69 MBv0.12026-03-11
下载Canta实用工具4.48 Mv3.2.22026-03-11
下载王者圣域策略游戏429.26 Mv2.1.0.22026-03-11
下载光强仪app实用工具4.91 Mv5.1.02026-03-11
下载光之守护者最新版角色扮演323.66 Mv1.8.92026-03-11
下载










