总结下,CSS3中的三种动画:tranform形变动画/transition缓动动画/animation逐帧动画;
tranform: rotate旋转/skew扭曲/scale缩放/translate移动/matrix矩阵变形;
transition: property duration timing-function delay;
animation: KeyframesName duration timing-function delay iteration-count direction play-state fill-mode;
tranform: rotate旋转/skew扭曲/scale缩放/translate移动/matrix矩阵变形;
transition: property duration timing-function delay;
animation: KeyframesName duration timing-function delay iteration-count direction play-state fill-mode;
2015-01-25
transition: property duration timing-function delay;咳咳,这个语法要记一下。
2015-01-25
怕报错,就下个editplus复制进去写了测试正确再复制进来。
2015-01-25
就是用来转化中心点的,Flash中原件啥的旋转变形等都以中心点为基础,这里是一个道理。
2015-01-25
text-overflow只是用来说明文字溢出时用什么方式显示,要实现溢出时产生省略号的效果,还须定义强制文本在一行内显示(white-space:nowrap)及溢出内容为隐藏(overflow:hidden),只有这样才能实现溢出文本显示省略号的效果
text-overflow:ellipsis;
overflow:hidden;
white-space:nowrap;
text-overflow:ellipsis;
overflow:hidden;
white-space:nowrap;
2015-01-25
background-image:liear-gradient(to top left,red,black);
to top 从上到下
to right 从左向右
to bottom 从上向下
to left 从右向左
to top left 右下角到左上角
to top right 左下角向右下角
to top 从上到下
to right 从左向右
to bottom 从上向下
to left 从右向左
to top left 右下角到左上角
to top right 左下角向右下角
2015-01-25
p{
font-size:42px;
text-align:center;
font-weight:bold;
background:rgba(255,255,255,0.5);
}
font-size:42px;
text-align:center;
font-weight:bold;
background:rgba(255,255,255,0.5);
}
2015-01-25