国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 開發 > CSS > 正文

css制作超萌吃豆豆加載動畫效果

2024-07-11 08:59:03
字體:
來源:轉載
供稿:網友

豆豆加載效果

 

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制作超萌吃豆豆加載動畫效果,希望對大家有所幫助,如果大家有任何疑問請給我留言,小編會及時回復大家的。在此也非常感謝大家對武林網網站的支持!

發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 漳平市| 永兴县| 西吉县| 洛宁县| 永平县| 清水河县| 丽水市| 房产| 佛坪县| 姜堰市| 鹿邑县| 正定县| 阿拉善盟| 嫩江县| 垦利县| 南部县| 汶川县| 仪征市| 香河县| 易门县| 临湘市| 焉耆| 西乌珠穆沁旗| 金湖县| 阿坝县| 英超| 临海市| 宜宾县| 东兰县| 阜平县| 大洼县| 筠连县| 建德市| 黄石市| 彰武县| 晴隆县| 当涂县| 湖南省| 成武县| 广东省| 南丹县|