黑松山资源网 Design By www.paidiu.com
豆豆加载效果
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制作超萌吃豆豆加载动画效果,希望对大家有所帮助,如果大家有任何疑问请给我留言,小编会及时回复大家的。在此也非常感谢大家对网站的支持!
黑松山资源网 Design By www.paidiu.com
广告合作:本站广告合作请联系QQ:858582 申请时备注:广告合作(否则不回)
免责声明:本站资源来自互联网收集,仅供用于学习和交流,请遵循相关法律法规,本站一切资源不代表本站立场,如有侵权、后门、不妥请联系本站删除!
免责声明:本站资源来自互联网收集,仅供用于学习和交流,请遵循相关法律法规,本站一切资源不代表本站立场,如有侵权、后门、不妥请联系本站删除!
黑松山资源网 Design By www.paidiu.com
暂无评论...
更新日志
2025年10月27日
2025年10月27日
- 小骆驼-《草原狼2(蓝光CD)》[原抓WAV+CUE]
- 群星《欢迎来到我身边 电影原声专辑》[320K/MP3][105.02MB]
- 群星《欢迎来到我身边 电影原声专辑》[FLAC/分轨][480.9MB]
- 雷婷《梦里蓝天HQⅡ》 2023头版限量编号低速原抓[WAV+CUE][463M]
- 群星《2024好听新歌42》AI调整音效【WAV分轨】
- 王思雨-《思念陪着鸿雁飞》WAV
- 王思雨《喜马拉雅HQ》头版限量编号[WAV+CUE]
- 李健《无时无刻》[WAV+CUE][590M]
- 陈奕迅《酝酿》[WAV分轨][502M]
- 卓依婷《化蝶》2CD[WAV+CUE][1.1G]
- 群星《吉他王(黑胶CD)》[WAV+CUE]
- 齐秦《穿乐(穿越)》[WAV+CUE]
- 发烧珍品《数位CD音响测试-动向效果(九)》【WAV+CUE】
- 邝美云《邝美云精装歌集》[DSF][1.6G]
- 吕方《爱一回伤一回》[WAV+CUE][454M]
