animate.css与wow.js制作网站动效
2024-08-30 03:01:32
animate.css
官网:https://daneden.github.io/animate.css/
包括:attention seekers:关注者
bouncing entrances:跳跃进入
Bouncing Exits:
Fading Entrances
Fading Exits:渐变退出
Flippers: 脚蹼
Lightspeed:光速
Rotating Entrances:
Rotating Exits:旋转退出
Sliding Entrances
Sliding Exits:滑动退出
Zoom Entrances
Zoom Exits:变焦退出
Specials
wow.js
Reveal Animations When You Scroll. Very Animate.cssFriend :-)
Easily customize animation settings: style, delay, length, offset, iterations...
官网:http://mynameismatthieu.com/WOW/
css3动画
css3 @keyframes规则 ie10+
@keyframes myfirst
{
from {background: red;}
to {background: yellow;}
} @keyframes myfirst
{
0% {background: red; left:0px; top:0px;}
25% {background: yellow; left:200px; top:0px;}
50% {background: blue; left:200px; top:200px;}
75% {background: green; left:0px; top:200px;}
100% {background: red; left:0px; top:0px;}
} @-moz-keyframes myfirst /* Firefox */
{
0% {background: red; left:0px; top:0px;}
25% {background: yellow; left:200px; top:0px;}
50% {background: blue; left:200px; top:200px;}
75% {background: green; left:0px; top:200px;}
100% {background: red; left:0px; top:0px;}
} @-webkit-keyframes myfirst /* Safari 和 Chrome */
{
0% {background: red; left:0px; top:0px;}
25% {background: yellow; left:200px; top:0px;}
50% {background: blue; left:200px; top:200px;}
75% {background: green; left:0px; top:200px;}
100% {background: red; left:0px; top:0px;}
} @-o-keyframes myfirst /* Opera */
{
0% {background: red; left:0px; top:0px;}
25% {background: yellow; left:200px; top:0px;}
50% {background: blue; left:200px; top:200px;}
75% {background: green; left:0px; top:200px;}
100% {background: red; left:0px; top:0px;}
} div
{
animation: myfirst 5s linear 2s infinite alternate;
/* Firefox: */
-moz-animation: myfirst 5s linear 2s infinite alternate;
/* Safari 和 Chrome: */
-webkit-animation: myfirst 5s linear 2s infinite alternate;
/* Opera: */
-o-animation: myfirst 5s linear 2s infinite alternate;
}
对比转换 transform(静态)
转换是使元素改变形状、尺寸和位置的一种效果
- translate():通过 translate() 方法,元素从其当前位置移动,根据给定的 left(x 坐标) 和 top(y 坐标) 位置参数 transform: translate(50px,100px);
- rotate():通过 rotate() 方法,元素顺时针旋转给定的角度。允许负值,元素将逆时针旋转。 transform: rotate(30deg);
- scale():通过 scale() 方法,元素的尺寸会增加或减少,根据给定的宽度(X 轴)和高度(Y 轴)参数: transform: scale(2,4);
- skew():通过 skew() 方法,元素翻转给定的角度,根据给定的水平线(X 轴)和垂直线(Y 轴)参数: transform: skew(30deg,20deg);
- matrix():matrix() 方法把所有 2D 转换方法组合在一起。matrix() 方法需要六个参数,包含数学函数,允许您:旋转、缩放、移动以及倾斜元素。 transform:matrix(0.866,0.5,-0.5,0.866,0,0);
对比过渡 transition
transition: width 1s linear 2s;
最新文章
- hibernate---注释 ----(购物:人顾客售货员boss)
- 转载:冷门js技巧
- LINUX系统编程 由REDIS的持久化机制联想到的子进程退出的相关问题
- ACM2050前传
- Part 59 to 60 Difference between Convert ToString and ToString,String and StringBuilder
- C#数据上传方法
- php错误处理和异常处理
- [STL] day 1~2 Problem Set
- 乡下人重拾MVC——@RenderBody @RenderSection @Html.Partial @Html.Action @Html.RenderPartial @Html.RenderAction
- JS 作用域(执行环境)与作用链---JS 学习笔记(二)
- springcloud使用zookeeper作为config的配置中心
- python实现归并排序算法
- [Aaronyang] 写给自己的WPF4.5 笔记9[复杂数据处理三步曲,数据展示ListView泪奔2/3]
- Unknown parameter datatype UNKNOW send from server.
- 用rem来做响应式开发(转)
- MySQL root密码忘记后更优雅的解决方法
- Python机器学习——线性模型
- bzoj 4568: [Scoi2016]幸运数字
- iOS-- UIimageView详解
- Python在ubuntu下常用开发包名称
热门文章
- Hadoop1.0 与Hadoop2.0
- 嵌入式C语言自我修养 01:Linux 内核中的GNU C语言语法扩展
- python 爬虫(爬取网页的img并下载)
- Python学习知识库
- 【面试必问】python实例方法、类方法@classmethod、静态方法@staticmethod和属性方法@property区别
- IO 转换流
- 「日常训练」Known Notation(ZOJ-3829)
- Django自定义管理表单
- TPO-14 C2 Prepare for a career in journalism
- 教你一招,提升你Python代码的可读性,小技巧