css3过渡transition
transition:transition-property transition-duration transition-timing-function transition-delay
值 | 描述 | 默认值 | 例如 | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
transition-property | 指定CSS属性的name,transition效果 |
|
| 当鼠标滑过div的时候,width由100px 转变成300px。 | ||||||||||||
transition-duration | transition效果需要指定多少秒或毫秒才能完成 | 默认值是 0,意味着不会有效果。 |
| 当鼠标滑过div的时候,2秒完成:width由100px 转变成300px。 | ||||||||||||
transition-timing-function | 指定transition效果的转速曲线 |
指定切换效果的速度
| ||||||||||||||
transition-delay | 定义transition效果开始的时候 | 指定秒或毫秒数之前要等待切换效果开始 | ||||||||||||||
transiton | 简写属性,用于在一个属性中设置四个过渡属性。 |
|
css转换transform:转换的效果是让某个元素改变形状,大小和位置。
2D转换 | translate() | 平移 |
| ||||||
rotate() | 在一个给定度数顺时针旋转的元素。负值是允许的,这样是元素逆时针旋转 |
| |||||||
scale() | 该元素增加或减少的大小(缩放) |
| |||||||
skew() | |
| |||||||
matrix() |
| ||||||||
transform | 适用于2D或3D转换的元素 | ||||||||
transform-origin | 允许您更改转化元素位置 |
css动画animation
属性 | 描述 | ||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
@keyframes | 规定动画。 |
| |||||||||||||||||||||||
animation | 所有动画属性的简写属性。 |
| |||||||||||||||||||||||
animation-name | 规定 @keyframes 动画的名称。 | animation-name:mymove; | |||||||||||||||||||||||
animation-duration | 规定动画完成一个周期所花费的秒或毫秒。默认是 0。 | 指定动画播放完成花费的时间。默认值为 0,意味着没有动画效果。 | |||||||||||||||||||||||
animation-timing-function | 规定动画的速度曲线。默认是 "ease"。 |
| |||||||||||||||||||||||
animation-fill-mode | 规定当动画不播放时(当动画完成时,或当动画有一个延迟未开始播放时),要应用到元素的样式。 |
| |||||||||||||||||||||||
animation-delay | 规定动画何时开始。默认是 0。 | 允许负值,-2s 使动画马上开始,但跳过 2 秒进入动画 | |||||||||||||||||||||||
animation-iteration-count | 规定动画被播放的次数。默认是 1。 |
| |||||||||||||||||||||||
animation-direction | 规定动画是否在下一周期逆向地播放。默认是 "normal"。 |
| |||||||||||||||||||||||
animation-play-state | 规定动画是否正在运行或暂停。默认是 "running"。 |
|
CSS3 多列属性
属性 | 描述 |
---|---|
column-count | 指定元素应该被分割的列数。 |
column-fill | 指定如何填充列 |
column-gap | 指定列与列之间的间隙 |
column-rule | 所有 column-rule-* 属性的简写 |
column-rule-color | 指定两列间边框的颜色 |
column-rule-style | 指定两列间边框的样式 |
column-rule-width | 指定两列间边框的厚度 |
column-span | 指定元素要跨越多少列 |
column-width | 指定列的宽度 |
columns | column-width 与 column-count 的简写属性。 |
实例链接:
https://blog.csdn.net/qq_32013641/article/details/89070248
https://www.cnblogs.com/wangsir015/p/5549190.html
https://www.cnblogs.com/cquptzy/p/7610207.html
http://www.htmleaf.com/ziliaoku/qianduanjiaocheng/201502061338.html