请务必收下这10+个加载特效,保证让你的项目大放异彩⭐(五)

简介: 请务必收下这10+个加载特效,保证让你的项目大放异彩⭐(五)

☀️ 前言


相信大家经常会使用到加载动画,但是大部分组件库的加载样式都太简洁了👻。

这次给前端工友们收集了10+个高逼格加载动画效果!!复制就能直接用!!😎

⛷️ 来吧展示



1、一个"胶粘"加载

每个圆进行粘合拆分形成了一个胶粘效果

<!-- loading.html -->
<div class="loading">
</div>
<svg xmlns="http://www.w3.org/2000/svg" version="1.1">
  <defs>
    <filter id="goo">
      <feGaussianBlur in="SourceGraphic" stdDeviation="6.3" result="blur" />
      <feColorMatrix in="blur" mode="matrix" values="1 0 0 0 0  0 1 0 0 0  0 0 1 0 0  0 0 0 14 -4" result="goo" />
      <feBlend in="SourceGraphic" in2="goo" />
    </filter>
  </defs>
</svg>
复制代码
/* loading.css */
.loading {
  width: 166px;
  height: 166px;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  -webkit-filter: url("#goo");
  filter: url("#goo");
}
.loading span {
  width: 100%;
  text-align: center;
  color: #e04960;
  font-weight: bold;
  text-transform: uppercase;
  font-size: 15px;
  letter-spacing: 1px;
  position: absolute;
  left: 1px;
  top: 46%;
}
.loading:before, .loading:after {
  content: '';
  border-radius: 50%;
  background-color: #e04960;
  width: 26px;
  height: 26px;
  position: absolute;
  left: 72px;
  top: 8px;
  animation: rotate 6s linear;
  animation-iteration-count: infinite;
  transform-origin: 12px 76px;
}
.loading:before {
  box-shadow: 45px 19px 0px 0px #e04960, 62px 63px 0px 0px #e04960, 45px 107px 0px 0px #e04960, 0px 126px 0px 0px #e04960, -46px 107px 0px 0px #e04960, -63px 63px 0px 0px #e04960, -46px 19px 0px 0px #e04960;
}
.loading:after {
  animation-direction: reverse;
}
@keyframes rotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(-360deg); }
}

Author:Dicson


2、一个"方块对对碰"加载

巧妙的运用位移也能做出碰撞挤出的效果

<!-- loading.html -->
<div class="loading">
  <div class="loading-square"></div>
  <div class="loading-square"></div>
  <div class="loading-square"></div>
  <div class="loading-square"></div>
</div>
/* loading.css */
.loader {
  display: block;
  position: relative;
  height: 20px;
  width: 86px;
}
.loading-square {
  position: absolute;
  height: 20px;
  width: 20px;
  top: 0;
}
.loading-square:nth-child(1) {
  left: 0;
  animation: square1 1.5s linear forwards infinite;
}
.loading-square:nth-child(2) {
  left: 22px;
  animation: square2 1.5s linear forwards infinite;
}
.loading-square:nth-child(3) {
  left: 44px;
  animation: square3 1.5s linear forwards infinite;
}
.loading-square:nth-child(4) {
  left: 66px;
  animation: square4 1.5s linear forwards infinite;
}
@keyframes square1 {
  0% {
    background-color: #97c900;
    transform: translate(0, 0);
  }
  9.09091% {
    transform: translate(0, calc(-100% - 2px));
    background-color: #97c900;
  }
  18.18182% {
    transform: translate(calc(100% + 2px), calc(-100% - 2px));
    background-color: #15668a;
  }
  27.27273% {
    transform: translate(calc(100% + 2px), 0);
  }
  100% {
    background-color: #15668a;
    transform: translate(calc(100% + 2px), 0);
  }
}
@keyframes square2 {
  0% {
    background-color: #15668a;
    transform: translate(0, 0);
  }
  18.18182% {
    transform: translate(0, 0);
  }
  27.27273% {
    transform: translate(0, calc(100% + 2px));
    background-color: #15668a;
  }
  36.36364% {
    transform: translate(calc(100% + 2px), calc(100% + 2px));
    background-color: #D53A33;
  }
  45.45455% {
    transform: translate(calc(100% + 2px), 0);
  }
  100% {
    background-color: #D53A33;
    transform: translate(calc(100% + 2px), 0);
  }
}
@keyframes square3 {
  0% {
    background-color: #D53A33;
    transform: translate(0, 0);
  }
  36.36364% {
    transform: translate(0, 0);
  }
  45.45455% {
    transform: translate(0, calc(-100% - 2px));
    background-color: #D53A33;
  }
  54.54545% {
    transform: translate(calc(100% + 2px), calc(-100% - 2px));
    background-color: #E79C10;
  }
  63.63636% {
    transform: translate(calc(100% + 2px), 0);
  }
  100% {
    background-color: #E79C10;
    transform: translate(calc(100% + 2px), 0);
  }
}
@keyframes square4 {
  0% {
    transform: translate(0, 0);
    background-color: #E79C10;
  }
  54.54545% {
    transform: translate(0, 0);
  }
  63.63636% {
    transform: translate(0, calc(100% + 2px));
    background-color: #E79C10;
  }
  72.72727% {
    background-color: #D53A33;
  }
  81.81818% {
    background-color: #15668a;
  }
  90.90909% {
    transform: translate(calc(-300% - 6px), calc(100% + 2px));
    background-color: #97c900;
  }
  100% {
    transform: translate(calc(-300% - 6px), 0);
    background-color: #97c900;
  }
}

Author:Paul Grant


3、一个"Switch"加载

有Switch的同学应该很熟悉了,这就是eshop里面的加载

<!-- loading.html -->
<div class="load">
  <div class="loading">
    <div class="loader__bar"></div>
    <div class="loader__bar loader__bar--delay-1"></div>
    <div class="loader__bar loader__bar--delay-2"></div>
    <div class="loader__bar loader__bar--delay-3"></div>
    <div class="loader__bar loader__bar--delay-4"></div>
    <div class="loader__bar loader__bar--delay-5"></div>
    <div>
  </div>
</div>
/* loading.css */
.load{
  width: 400px;
  height: 170px;
}
@keyframes loader {
  0%{
    background: #FF8919;
    width:0%;
  }20%{
    width:100%;
  }39%{
    background: #FF8919;
  }40%{
    background: #FFA54F;
    width: 0%
  }60%{
    width: 100%;
  }80%{
    width:0%;
  }100%{
    background: #FFA54F;
    width: 0%;
  }
}
@keyframes loaderAlt {
  0%{
    background: #FF7C00;
    width:100%;
  }19%{
    background: #FF7C00;
  }20%{
    background: #FF9834;
    width: 0%;
  }40%{
    width: 100%;
  }59%{
    background: #FF9834;
  }60%{
    background: #FF7C00;
    width: 0;
  }80%{
    width: 100%;
  }100%{
    background: #FF7C00;
    width: 100%
  }
}
.loading{
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  width: 100%;
}
.loader__bar{
  display: flex;
  flex: 1;
  position: relative;
  width: 100%;
}
.loader__bar:before{
  animation: loader ease 8s infinite;
  animation-delay: 100ms;
  background: #FF7C00;
  background-size: 200% 200%;
  content: "";
  height:100%;
  width: 0%;
}
.loader__bar:after{
  animation: loaderAlt ease 8s infinite;
  animation-delay: 100ms;
  background: #FF7C00;
  background-size: 200% 200%;
  content: "";
  height: 100%;
  width: 100%;
}
.loader__bar--delay-1:before,
.loader__bar--delay-1:after{
  animation-delay: 200ms;
}
.loader__bar--delay-2:before,
.loader__bar--delay-2:after{
  animation-delay: 300ms;
}
.loader__bar--delay-3:before,
.loader__bar--delay-3:after{
  animation-delay: 400ms;
}
.loader__bar--delay-4:before,
.loader__bar--delay-4:after{
  animation-delay: 500ms;
}
.loader__bar--delay-5:before,
.loader__bar--delay-5:after{
  animation-delay: 600ms;
}

Author:Steve Meredith


👋 写在最后


  • 首先还是很感谢大家看到这里,这次的文章就分享到这里,如果有需要可以直接复制使用哟~
  • 如果您觉得这篇文章有帮助到您的的话不妨🍉关注+点赞+收藏+评论+转发🍉支持一下哟~~😛您的支持就是我更新的最大动力。


相关文章
|
机器学习/深度学习 数据采集 人工智能
人工智能安全(下)
人工智能安全(下)
1286 0
人工智能安全(下)
|
2月前
|
机器学习/深度学习 缓存 负载均衡
DeepSeek 模型原理进化史
DeepSeek 模型原理进化史
|
2月前
|
编译器 Linux C语言
【保姆级】MinGW-w64下载、安装、配置、实战开发一篇搞定(送官方安装包)
MinGW-w64 是一款免费开源的 Windows 原生 GCC 编译环境,轻量(数百MB)、免安装、命令行友好,支持 C/C++ 编译为原生exe,无需VS大体积IDE,完美兼容Linux开发习惯。
792 0
|
2月前
|
缓存 安全 测试技术
阿里云轻量应用服务器优惠活动价格及测评:2核2G、2核4G、4核8G、4核16G全配置清单
在选购 阿里云轻量应用服务器 时,优先按照业务内存需求选择机型,而不是单纯看CPU核心数量。业务以数据库、缓存、模型推理为主,优先选择大内存机型;简单静态网站,2核2G足够使用。下单前确认账号是否为新用户,确认目标地域库存,充分理解带宽峰值、续费价格、实例IP回收等限制。购买完成后,通过bench脚本、top、dd等命令完成性能自测,做好服务器安全防护,合理规划业务部署,避免资源不足或者配置过剩造成成本浪费。轻量应用服务器简化运维门槛,只要合理匹配配置,就能低成本搭建各类Web应用、开发环境,满足个人开发者和小微企业的上云需求。
480 0
|
3月前
|
人工智能
阿里云千问办公企业积分包是什么?积分有什么用?如何收费?
千问办公企业积分包是面向已购标准版/旗舰版企业的补充额度商品,以2000积分为起购单位,有效期12个月。积分用于抵扣多模态生成、Office编辑、网页交付等AI能力调用,需在企业管理后台统一配置使用限额。(239字)
793 1
|
2月前
|
前端开发
DSH plugin 界面开发:设置卡片怎么注册、Host 半与浏览器半怎么配合、client 打包怎么写
DeepSeek Harness(DSH)插件界面开发:一个包里写 Host 半(用 settings.installSection 注册命名空间)与浏览器半(向 settings.plugin.item 槽注册卡片),用 ctx.settingsScope 读写,并按 dsh.client 打包 ./client。
332 0
|
6月前
|
缓存 安全 网络安全
阿里云Windows云服务器搭建IIS:从零开始部署Web服务全指南
本文提供了一份完整的阿里云Windows云服务器搭建IIS Web服务的深度指南。从ECS实例的选购与创建开始,详细讲解了通过服务器管理器和PowerShell两种方式安装IIS及核心组件的方法。深入介绍了网站创建、应用程序池配置、多站点部署、HTTPS证书绑定等核心操作。针对性能优化,阐述了静态压缩、输出缓存、连接数调整等策略。在安全加固方面,覆盖了阿里云安全组规则、Windows防火墙、目录权限、错误页隐藏等关键措施。同时提供了IIS+PHP(FastCGI)环境的搭建步骤,以及500错误、端口占用、403禁止访问等常见问题的系统化排查方案。全文贯穿实际操作命令与配置示例,帮助读者在阿里云
|
6月前
|
存储 人工智能 监控
Hermes Agent+Obsidian完整闭环:让笔记从死文件变为可复用AI工作资产全解
Hermes Agent搭配Obsidian的核心价值,彻底解决传统第二大脑“笔记存而不用”的死文件困境,通过本地Markdown标准化存储+可执行AI智能体,构建“读取历史知识→执行当前任务→沉淀新增经验”永久闭环。
849 0
|
8月前
|
人工智能 弹性计算 自然语言处理
阿里云学生算力包:大学生上云练手、做毕设、玩 AI 的全能方案
阿里云推出“学生算力包”,19元起享灵活按小时抵扣的云资源,支持一键部署AI简历、个人网站等实战项目;深度联动清华、浙大等数十所高校,提供课程、实训营与赛事支持,助力学生低成本入门AI开发与云实践。
971 9
|
6月前
|
人工智能 架构师 Java
告别AI工具选择困难症!2026 Java开发者效率清单
2026年,Java开发者面临“工具多、协同弱”的困局。本文提出“三层过滤”选型法:Ollama/Copilot作轻量辅助;飞算JavaAI为智能核心——内置10个专家Agent,支持可干预架构设计、上下文感知对话与规范代码生成;Spring AI+LangFuse补全可观测性。告别堆砌,拥抱懂工程的“AI大脑”。