分类分类
更新时间:2026-08-08 19:58:34作者: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制作超萌吃豆豆加载动画效果,希望对大家有所帮助。
相关
星球小队策略游戏316.49 MBv1.15.366.638912026-08-08
下载超市大亨3D经营养成253.14 MBv10.252026-08-08
下载绝世武林角色扮演453.09 MBv1.8.14162026-08-08
下载Crush Crush手机版经营养成124.86 Mv0.4482026-08-08
下载消消大亨经营养成13.56 Mv1.0.02026-08-08
下载endacopia手机版冒险游戏1.43Gv1.0.02026-08-08
下载最强帮主角色扮演143.91 MBv9991.12026-08-08
下载战西游手游折扣版策略游戏13.77 MBv1.02026-08-08
下载富豪物语创业时代官方版经营养成215.01 Mv3.0.12026-08-08
下载咒术回战爱憎乱斗手游动作射击291.7 Mv1.0.02026-08-08
下载三国吧兄弟折扣版策略游戏380.04 MBv1.0.02026-08-08
下载代号97动作射击277.47 Mv1.0.72026-08-08
下载










