*新闻详情页*/>
豆豆载入实际效果
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(⑶0deg); } } @-moz-keyframes up { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(⑶0deg); } } @-o-keyframes up { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(⑶0deg); } } @keyframes up { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(⑶0deg); } } @-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: ⑴px; } } @-moz-keyframes r-to-l { 100% { margin-left: ⑴px; } } @-o-keyframes r-to-l { 100% { margin-left: ⑴px; } } @keyframes r-to-l { 100% { margin-left: ⑴px; } } 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: ⑸0px; margin-top: ⑸0px; 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: ⑴px; 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: ⑸px; margin-left: 30px; border-radius: 50%; background: #ccc; z-index: ⑴; 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制做超萌吃豆豆载入动漫实际效果,期待对大伙儿有一定的协助,假如大伙儿有任何疑惑请给我留言,网编会立即回应大伙儿的。在此也十分谢谢大伙儿对脚本制作之家网站的适用!
Copyright © 2002-2020 小程序制作流程_抽奖小程序_微信小程序怎么开店_小程序码生成_小程序模版 版权所有 (网站地图) 粤ICP备10235580号