其他代码

15种漂亮 css3 loading 动画特效

阿里云


这是一款漂亮的 css3 loading 动画特效。该特效中包含了 15 种不同的 loading 动画效果,他们通过简单的 HTML 结构和 CSS3 代码来实现。

HTML 结构

第一个示例的基本 HTML 结构如下。

也想出现在这里?联系我们
创客主机
  1. <section>
  2.   <div class="loader loader-1">
  3.     <div class="loader-outter"></div>
  4.     <div class="loader-inner"></div>
  5.   </div>
  6. </section>

CSS 样式

然后添加下面的 CSS 样式。

  1. .loader-1 .loader-outter {
  2.     position: absolute;
  3.     border: 4px solid #f50057;
  4.     border-left-color: transparent;
  5.     border-bottom: 0;
  6.     width: 100%;
  7.     height: 100%;
  8.     border-radius: 50%;
  9.     -webkit-animation: loader-1-outter 1s cubic-bezier(.42, .61, .58, .41) infinite;
  10.     animation: loader-1-outter 1s cubic-bezier(.42, .61, .58, .41) infinite;
  11. }
  12.  
  13. .loader-1 .loader-inner {
  14.     position: absolute;
  15.     border: 4px solid #f50057;
  16.     border-radius: 50%;
  17.     width: 40px;
  18.     height: 40px;
  19.     left: calc(50% - 20px);
  20.     top: calc(50% - 20px);
  21.     border-right: 0;
  22.     border-top-color: transparent;
  23.     -webkit-animation: loader-1-inner 1s cubic-bezier(.42, .61, .58, .41) infinite;
  24.     animation: loader-1-inner 1s cubic-bezier(.42, .61, .58, .41) infinite;
  25. }

Codepen 网址:https://codepen.io/slyka85/pen/QvBQPb

15 种漂亮 css3 loading 动画特效

已有 489 人购买
查看演示升级 VIP立刻购买

演示地址 下载地址
收藏
(0)

发表回复

热销模板

Ashade - 作品展示摄影相册WordPress汉化主题
LensNews

本站承接 WordPress / PbootCMS / DedeCMS 等
系统建站、仿站、开发、定制等业务!