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

首頁 > 開發 > CSS > 正文

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

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

豆豆加載效果

css,加載效果,css加載動畫效果

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

 

注:相關教程知識閱讀請移步到CSS教程頻道。
發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 肇州县| 资兴市| 当涂县| 崇州市| 鄂托克前旗| 卫辉市| 德保县| 会同县| 称多县| 全州县| 孝义市| 涿鹿县| 栖霞市| 微博| 乾安县| 神农架林区| 剑河县| 西乌| 元氏县| 垣曲县| 教育| 丘北县| 武汉市| 含山县| 金华市| 本溪| 秭归县| 元氏县| 抚远县| 易门县| 扎兰屯市| 米林县| 墨竹工卡县| 沁源县| 西丰县| 庄河市| 施秉县| 固阳县| 苍溪县| 临夏县| 无棣县|