• linkedu视频
  • 平面设计
  • 电脑入门
  • 操作系统
  • 办公应用
  • 电脑硬件
  • 动画设计
  • 3D设计
  • 网页设计
  • CAD设计
  • 影音处理
  • 数据库
  • 程序设计
  • 认证考试
  • 信息管理
  • 信息安全
菜单
linkedu.com
  • 网页制作
  • 数据库
  • 程序设计
  • 操作系统
  • CMS教程
  • 游戏攻略
  • 脚本语言
  • 平面设计
  • 软件教程
  • 网络安全
  • 电脑知识
  • 服务器
  • 视频教程
  • dedecms
  • ecshop
  • z-blog
  • UcHome
  • UCenter
  • drupal
  • WordPress
  • 帝国cms
  • phpcms
  • 动易cms
  • phpwind
  • discuz
  • 科汛cms
  • 风讯cms
  • 建站教程
  • 运营技巧
您的位置:首页 > CMS教程 >建站教程 > 超酷的CSS3 loading预加载动画特效

超酷的CSS3 loading预加载动画特效

作者:站长图库 字体:[增加 减小] 来源:互联网

站长图库向大家介绍了CSS3动画,loading动画,预加载动画等相关知识,希望对您有所帮助

这是一款超酷CSS3 loading预加载动画特效。该loading特效共有4种不同的效果,分别通过不同的CSS3 keyframes帧动画来完成。


超酷的CSS3 loading预加载动画特效


HTML结构

4种loading预加载动画的HTML结构分别如下:

<!-- 效果一 --><div class="spinner-box">  <div class="circle-border">    <div class="circle-core"></div>  </div>  </div> <!-- 效果二 --><div class="spinner-box">  <div class="configure-border-1">      <div class="configure-core"></div>  </div>    <div class="configure-border-2">    <div class="configure-core"></div>  </div> </div> <!-- 效果三 --><div class="spinner-box">  <div class="pulse-container">      <div class="pulse-bubble pulse-bubble-1"></div>    <div class="pulse-bubble pulse-bubble-2"></div>    <div class="pulse-bubble pulse-bubble-3"></div>  </div></div> <!-- 效果四 --><div class="spinner-box">  <div class="solar-system">    <div class="earth-orbit orbit">      <div class="planet earth"></div>      <div class="venus-orbit orbit">        <div class="planet venus"></div>        <div class="mercury-orbit orbit">          <div class="planet mercury"></div>          <div class="sun"></div>        </div>      </div>    </div>  </div></div>


CSS样式

然后分别为它们添加下面的CSS样式。

/* KEYFRAMES */ @keyframes spin {  from {    transform: rotate(0);  }  to{    transform: rotate(359deg);  }} @keyframes configure-clockwise {  0% {    transform: rotate(0);  }  25% {    transform: rotate(90deg);  }  50% {    transform: rotate(180deg);  }  75% {    transform: rotate(270deg);  }  100% {    transform: rotate(359deg);  }} @keyframes configure-xclockwise {  0% {    transform: rotate(45deg);  }  25% {    transform: rotate(-45deg);  }  50% {    transform: rotate(-135deg);  }  75% {    transform: rotate(-215deg);  }  100% {    transform: rotate(-305deg);  }} @keyframes pulse {  from {    opacity: 1;    transform: scale(1);  }  to {    opacity: .25;    transform: scale(.75);  }} /* GRID STYLING */ * {  box-sizing: border-box;} body {  min-height: 100vh;  background-color: #37474f;  display: flex;  justify-content: space-between;  flex-wrap: wrap;  align-items: flex-start;} .spinner-box {  width: 300px;  height: 300px;  display: flex;  justify-content: center;  align-items: center;  background-color: transparent;} /* SPINNING CIRCLE */ .circle-border {  width: 150px;  height: 150px;  padding: 3px;  display: flex;  justify-content: center;  align-items: center;  border-radius: 50%;  background: rgb(63,249,220);  background: linear-gradient(0deg, rgba(63,249,220,0.1) 33%, rgba(63,249,220,1) 100%);  animation: spin .8s linear 0s infinite;} .circle-core {  width: 100%;  height: 100%;  background-color: #37474f;  border-radius: 50%;} /* X-ROTATING BOXES */ .configure-border-1 {  width: 115px;  height: 115px;  padding: 3px;  position: absolute;  display: flex;  justify-content: center;  align-items: center;  background: #ffab91;  animation: configure-clockwise 3s ease-in-out 0s infinite alternate;} .configure-border-2 {  width: 115px;  height: 115px;  padding: 3px;  left: -115px;  display: flex;  justify-content: center;  align-items: center;  background: rgb(63,249,220);  transform: rotate(45deg);  animation: configure-xclockwise 3s ease-in-out 0s infinite alternate;} .configure-core {  width: 100%;  height: 100%;  background-color: #37474f;} /* PULSE BUBBLES */ .pulse-container {  width: 120px;  display: flex;  justify-content: space-between;  align-items: center;} .pulse-bubble {  width: 20px;  height: 20px;  border-radius: 50%;  background-color: #3ff9dc;} .pulse-bubble-1 {    animation: pulse .4s ease 0s infinite alternate;}.pulse-bubble-2 {    animation: pulse .4s ease .2s infinite alternate;}.pulse-bubble-3 {    animation: pulse .4s ease .4s infinite alternate;} /* SOLAR SYSTEM */ .solar-system {  width: 250px;  height: 250px;  display: flex;  justify-content: center;  align-items: center;} .orbit {    position: relative;    display: flex;    justify-content: center;    align-items: center;    border: 1px solid
  


 
分享到:QQ空间新浪微博腾讯微博微信百度贴吧QQ好友复制网址打印

您可能想查找下面的文章:

  • CSS3怎么实现卡片翻转效果
  • 小程序swiper轮播CSS3动画及跳转到指定swiper-item的使用
  • 超酷的CSS3 loading预加载动画特效
  • CSS3怎么实现动画结束不消失效果

相关文章

  • 一文浅析Angular中的响应式表单
  • 深入解析asp.net中mvc4自定义404页面(分享)
  • 教你5个让Vue3开发更顺畅的知识点
  • 怎么用Zblog做优化?
  • 给dedecms的分类信息模型添加置顶功能
  • PHPcms v9调用热门文章的两种方法
  • Photoshop绘制颓废风格的玻璃球教程
  • 网站地图设计的五个技巧
  • MacOS下PHP7.1升级到PHP7.4.15的方法
  • 浅谈利用Node.js如何获取WI-FI密码

文章分类

  • dedecms
  • ecshop
  • z-blog
  • UcHome
  • UCenter
  • drupal
  • WordPress
  • 帝国cms
  • phpcms
  • 动易cms
  • phpwind
  • discuz
  • 科汛cms
  • 风讯cms
  • 建站教程
  • 运营技巧

最近更新的内容

    • PHPCMS邮箱不能发送邮件?
    • Photoshop制作精致的橙色石纹立体字
    • 在javascript中,NaN是什么类型?
    • 用PHP将女友照片转成可爱的动漫头像!
    • Photoshop绘制蓝色风格的游戏手柄
    • Photoshop制作立体有机玻璃文字效果
    • AI制作超强立体效果
    • 帝国CMS多值字段for循环调用调用方法
    • CorelDraw实例教程:放射线效果另类做法
    • 百度蜘蛛是怎样来判断文章质量的?

关于我们 - 联系我们 - 免责声明 - 网站地图

©2020-2025 All Rights Reserved. linkedu.com 版权所有