• 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预加载动画特效

作者:站长图库 字体:[增加 减小] 来源:互联网 时间:2022-04-29

站长图库向大家介绍了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 #ffffffa5;    border-radius: 50%;} .earth-orbit {    width: 165px;    height: 165px;  -webkit-animation: spin 12s linear 0s infinite;} .venus-orbit {    width: 120px;    height: 120px;  -webkit-animation: spin 7.4s linear 0s infinite;} .mercury-orbit {    width: 90px;    height: 90px;  -webkit-animation: spin 3s linear 0s infinite;} .planet {    position: absolute;    top: -5px;  width: 10px;  height: 10px;    border-radius: 50%;  background-color: #3ff9dc;} .sun {    width: 35px;    height: 35px;    border-radius: 50%;    background-color: #ffab91;}


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

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

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

相关文章

  • 2022-04-29怎么用Zblog做优化?
  • 2022-04-29如何清除CentOS6或CentOS7上的磁盘空间
  • 2022-04-29Photoshop打造质感光效文字
  • 2022-04-29一起来了解下Bootstrap中的tab选项卡
  • 2022-04-29在PHP中如何使用后期静态绑定
  • 2022-04-29DEDECMS robots文件SEO优化设置的具体方法
  • 2022-04-29纯CSS使图片有放大效果代码
  • 2022-04-294种移动端适配方法
  • 2022-04-29浅析Node.js中zip压缩和zip解压缩
  • 2022-04-29如何解决PHP字符串中的换行符无效且多余的换行符

文章分类

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

最近更新的内容

    • CSS怎样让图片旋转又反转回来
    • Photoshop绘制时尚大气的播放界面
    • Photoshop打造超酷的火焰汽车
    • Photoshop绘制宝石风格的LOGO设计教程
    • Docker基础之compose文件结构以及安装工具
    • PHP实现获取url地址中顶级域名的方法示例
    • Photoshop设计绚丽魔幻效果的艺术字
    • 三种在php程序中嵌入html代码的方法
    • Photoshop绘制透明效果的立体心形
    • PHP远程采集正则图片案例

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

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