1.物体滚动效果

 <div class="box"><div class="boxLoading"></div></div>
<style>.boxLoading {width: 50px;height: 50px;margin: auto;position: absolute;left: 0;right: 0;top: 0;bottom: 0;}.boxLoading:before {content: '';width: 50px;height: 5px;background: #fff;opacity: 0.7;position: absolute;top: 59px;left: 0;border-radius: 50%;animation: shadow .5s linear infinite;}.boxLoading:after {content: '';width: 50px;height: 50px;background: #075222;animation: animate 0.6s linear infinite;position: absolute;top: 0;left: 0;border-radius: 3px;}@keyframes animate {17% {border-bottom-right-radius: 3px;}25% {transform: translateY(9px) rotate(22.5deg);}50% {transform: translateY(18px) scale(1, .9) rotate(45deg);border-bottom-right-radius: 40px;}75% {transform: translateY(9px) rotate(67.5deg);}100% {transform: translateY(0) rotate(90deg);}}@keyframes shadow {0%,100% {transform: scale(1, 1);}50% {transform: scale(1.2, 1);}}
</style>

2.音乐播放效果

  <div class="music"><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span></div>
<style>.music {position: absolute;top: 0px;bottom: 0px;left: 0px;right: 0px;margin: auto;width: 175px;height: 100px;}.music span {display: block;background: #e04960;width: 7px;height: 100%;border-radius: 14px;margin-right: 5px;float: left;}.music span:last-child {margin-right: 0px;}.music span:nth-child(1) {animation: load 2.5s 1.4s infinite linear;}.music span:nth-child(2) {animation: load 2.5s 1.2s infinite linear;}.music span:nth-child(3) {animation: load 2.5s 1s infinite linear;}.music span:nth-child(4) {animation: load 2.5s 0.8s infinite linear;}.music span:nth-child(5) {animation: load 2.5s 0.6s infinite linear;}.music span:nth-child(6) {animation: load 2.5s 0.4s infinite linear;}.music span:nth-child(7) {animation: load 2.5s 0.2s infinite linear;}.music span:nth-child(8) {animation: load 2.5s 0s infinite linear;}.music span:nth-child(9) {animation: load 2.5s 0.2s infinite linear;}.music span:nth-child(10) {animation: load 2.5s 0.4s infinite linear;}.music span:nth-child(11) {animation: load 2.5s 0.6s infinite linear;}.music span:nth-child(12) {animation: load 2.5s 0.8s infinite linear;}.music span:nth-child(13) {animation: load 2.5s 1s infinite linear;}.music span:nth-child(14) {animation: load 2.5s 1.2s infinite linear;}.music span:nth-child(15) {animation: load 2.5s 1.4s infinite linear;}@keyframes load {0% {background: #409EFF;transform: scaleY(0.08);}50% {background: #F56C6C;transform: scaleY(1);}100% {background: #409EFF;transform: scaleY(0.08);}}
</style>

3.交错动画loading效果

 <div class="loading"><div class="drop"></div><div class="drop"></div><div class="drop"></div><div class="drop"></div><div class="drop"></div></div>
 <style lang="scss" scoped>
body {display: flex;height: 100vh;justify-content: center;align-items: center;background: #222;
}.loading {position: fixed;left: 500px;right: 0;margin: 0 auto;top: 300px;$colors: #7ef9ff,#89cff0,#4682b4,#0f52ba,#000080;display: flex;.drop {position: relative;width: 2em;height: 2em;margin: 0.8em;border-radius: 50%;&::before {position: absolute;content: "";width: 100%;height: 100%;background: inherit;border-radius: inherit;animation: wave 2s ease-out infinite;}@for $i from 1 through 5 {&:nth-child(#{$i}) {background: nth($colors, $i);&::before {animation-delay: $i * 0.2s;}}}}
}@keyframes wave {50%,75% {transform: scale(2.5);}80%,100% {opacity: 0;}
}
</style>

4.小球移动

 <div class="move"><span></span></div>
.move {width: 150px;height: 4px;border-radius: 2px;margin: 0 auto;margin-top: 300px;position: relative;background: #409eff;-webkit-animation: changeBgColor 1.04s ease-in infinite alternate;animation: changeBgColor 1.04s ease-in infinite alternate;
}
.move span {display: inline-block;width: 30px;height: 30px;border-radius: 50%;background: #409eff;position: absolute;margin-top: -30px;margin-left: -8px;-webkit-animation: changePosition 1.04s ease infinite alternate;animation: changePosition 1.04s ease infinite alternate;
}
@-webkit-keyframes changeBgColor {0% {background: lightblue;}50% {background: red;}100% {background: #409eff;}
}
@-webkit-keyframes changePosition {0% {background: lightblue;}50% {background: red;}100% {margin-left: 142px;background: #409eff;}
}

5.电影闭幕效果(这个gif太大了,只能搞个图片将就一下,各位ikun一看就懂)

  <div class="container"><div class="box"></div><div class="text"><p>为坤护航,伴坤远航</p><br><p>你如此黑我家哥哥,难道不吃我家哥哥的肉吗?</p></div></div>
 .box {height: 100%;width: 100%;position: absolute;background: url('https://img0.baidu.com/it/u=2771945787,9120044&fm=253&fmt=auto&app=120&f=JPEG?w=800&h=500') no-repeat;background-size: cover;animation: fade-away 3s linear forwards;
}
.text {position: absolute;line-height: 55px;color: #fff;font-size: 36px;text-align: center;left: 50%;top: 50%;transform: translate(-50%, -50%);opacity: 0;animation: show 2s cubic-bezier(0.74, -0.1, 0.86, 0.83) forwards;
}@keyframes fade-away {30% {filter: brightness(1);}100% {filter: brightness(0);}
}
@keyframes show {20% {opacity: 0;}100% {opacity: 1;}
}

这些css 动画效果你一定要收藏相关推荐

  1. CSS动画效果无限循环放大缩小

    效果图: CSS动画效果无限循环放大缩小 <image class="anima" mode="widthFix" @click="nav&qu ...

  2. css鼠标移入线条延中心伸长,css动画效果:鼠标移上去底部线条从中间往两边延伸 - 子成君-分享出去,快乐加倍!-旧版已停更...

    本站已不再更新,最新资源请前往zcjun.com获取! css: .top-nav a:after { content: ' '; position: absolute; z-index: 2; bo ...

  3. 赞!15个来自 CodePen 的酷炫 CSS 动画效果

    CodePen 是一个在线的前端代码编辑和展示网站,能够编写代码并即时预览效果.你在上面可以在线分享自己的 Web 作品,也可以欣赏到世界各地的优秀开发者在网页中实现的各种令人惊奇的效果. 今天这篇文 ...

  4. CSS动画效果构成分析

    CSS动画特效的基本构成 文章目录 CSS动画特效的基本构成 CSS动画效果 一.动画轨迹,运动路径 1.规定目标样式 属性transfrom: 二.控制运动路径 transition animati ...

  5. css动画效果制作正方体旋转相册

    以下代码利用css动画效果制作了一个旋转的正方体,给正方体六个面放置好图片就可以当一个炫酷有趣的正方体旋转相框啦!可以将女朋友的照片放进去哦,赶快去试试,给女朋友一个惊喜吧! 下面没有放入背景建议大家 ...

  6. html中flash的简单动画效果,css 动画效果

    要搞就搞明白,一知半解时停止研究 损失最大 css3意义: CSS3 动画 通过 CSS3,我们能够创建动画,这可以在许多网页中取代动画图片.Flash 动画以及 JavaScript. 重点知识 C ...

  7. Html/CSS动画效果个人练习(11)

    CSS动画效果个人练习第十一天 Html源代码 <!doctype html> <html> <head> <meta charset="utf-8 ...

  8. jQuery及css动画效果

    1.jQuery动画效果 首先引入jQuery,进入链接地址:https://www.bootcdn.cn/jquery/ <!DOCTYPE html> <html lang=&q ...

  9. css动画效果:鼠标移上去底部线条从中间往四周动画延伸

    css动画效果:鼠标移上去底部线条从中间往四周动画延伸 如图: .top-nav a:after {content: ' ';position: absolute;z-index: 2;bottom: ...

最新文章

  1. .NET特性(Attribute)应用一例
  2. hutool中的threadutil_Hutool - 好用的Java工具类库
  3. 08_clickhouse主键/索引的工作机制(MergeTree的稀疏索引、索引的生成过程、索引的查询),数据标记的工作机制(数据存储、数据标记、数据查询、数据查询示例)(学习笔记)
  4. 数据库设计:pd工程创建数据库表
  5. vue.js实战——购物车练习(包含全选功能)
  6. 西部数据硬盘支持linux,西部数据开发新的Linux文件系统“Zonefs” 支持在分区块设备上运行...
  7. Codeforces Beta Round #51 D. Beautiful numbers 数位dp + 状态优化
  8. 微信小程序学习笔记01:微信小程序概述
  9. Docker 的出现
  10. 62. WWW 服务器
  11. Vissim4.3之API/SDK编程;Vissim编程;
  12. 台式计算机显示器的分辨率,台式电脑分辨率多少合适,测试电脑分辨率
  13. 博弈论——4.1三人博弈的纳什均衡练习题
  14. 基于Python的数据结构实验——顺序表与单链表建立与操作(附详细代码和注释)
  15. 《Ivor Horton's Beginning Java》 Chapter1-7 读书笔记
  16. 移动开发需要了解的UI设计知识
  17. 字距调整属性font-kerning,怎么查老婆的网贷信息,看看老婆在外面借了多少钱?
  18. android闪光灯
  19. MagickNet 缩图工具
  20. 一分钟解决连接git/github失败问题!亲测可行!

热门文章

  1. 按键精灵一键从交易开拓者TB下载各个品种日线数据
  2. 每日linux命令学习
  3. js 关于动态添加class样式的学习
  4. 第一周:李宏毅机器学习周报
  5. vscode中HTML文件在服务器上运行
  6. Verilog Function函数语法说明
  7. Markdown | 一份有颜值的书单
  8. 5.1[潜心创作]逃跑吧少年·追击游戏
  9. 用C语言编写一个简单的“+”“”-“”*“/”计算器
  10. 秒懂脏读、幻读、不可重复读