明霞山资源网 Design By www.htccd.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.htccd.com
广告合作:本站广告合作请联系QQ:858582 申请时备注:广告合作(否则不回)
免责声明:本站文章均来自网站采集或用户投稿,网站不提供任何软件下载或自行开发的软件! 如有用户或公司发现本站内容信息存在侵权行为,请邮件告知! 858582#qq.com
免责声明:本站文章均来自网站采集或用户投稿,网站不提供任何软件下载或自行开发的软件! 如有用户或公司发现本站内容信息存在侵权行为,请邮件告知! 858582#qq.com
明霞山资源网 Design By www.htccd.com
暂无评论...
RTX 5090要首发 性能要翻倍!三星展示GDDR7显存
三星在GTC上展示了专为下一代游戏GPU设计的GDDR7内存。
首次推出的GDDR7内存模块密度为16GB,每个模块容量为2GB。其速度预设为32 Gbps(PAM3),但也可以降至28 Gbps,以提高产量和初始阶段的整体性能和成本效益。
据三星表示,GDDR7内存的能效将提高20%,同时工作电压仅为1.1V,低于标准的1.2V。通过采用更新的封装材料和优化的电路设计,使得在高速运行时的发热量降低,GDDR7的热阻比GDDR6降低了70%。
