css制作超萌吃豆豆加载动画效果
建站知识 2021-07-03 07:54www.168986.cn长沙网站建设
豆豆加载效果
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%; : 50%; margin-left: -50px; margin-: -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-: -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%; : 50%; width: 10px; height: 10px; margin-: -5px; margin-left: 30px; border-radius: 50%; background: #c; z-index: -1; box-shadow: 30px 0 0 #c, 60px 0 0 #c, 90px 0 0 #c, 120px 0 0 #c, 150px 0 0 #c; -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制作超萌吃豆豆加载动画效果,希望对大家有所帮助,如果大家有任何疑问请给我留言,长沙网络推广会及时回复大家的。在此也非常感谢大家对狼蚁SEO网站的支持!
长沙网站设计
- 如何进行东阳SEO关键词优化?
- 边坝哪有关键词排名优化:提升你的网站流量与
- 安国百度优化服务:提升您的在线可见性
- 阜康新手做SEO怎么做
- 山西seo网站排名关键词优化:提升您网站曝光率
- 临沂seo网站排名关键词优化:提高你的网站可见
- 广西SEO网站推广怎样付费比较合理
- 双辽SEO网站推广:提升你的网站可见性与流量
- 辽宁企业网站优化购买方式有哪些
- 提升宝清百度SEO排名的实用技巧与策略
- 静宁百度SEO排名:提升您网站曝光率的关键策略
- 彭州百度SEO排名的提升策略和实施指南
- 广南百度关键词SEO:提升网站排名的关键策略
- 辽宁关键词优化怎么做论坛营销
- 吉林百度seo排名如何做到让用户满意
- 内黄百度优化服务:提升在线可见性的关键