css3的转换效果过渡效果动画效果和列
来源:互联网 发布:win10蓝牙 软件 编辑:程序博客网 时间:2024/06/11 18:51
今天看了css3的相关视频,保存代码以供参考
1,转换效果
div { width: 100px; height: 100px; background-color: blueviolet;}.div2 {/*移动 xy坐标*/transform: translate(100px, 100px);/*谷歌 苹果浏览器*/-webkit-transform: translate(100px, 100px);/*火狐浏览器*/-moz-transform: translate(100px, 100px);/*ie浏览器*/-ms-transform: translate(100px, 100px);/*opera浏览器*/-o-transform: translate(100px, 100px);}.div2 {/*旋转 度数 正数为顺时针旋转,负数为逆时针旋转*/transform: rotate(95deg);}.div2 {/*缩放 xy方向倍数*/transform: scale(2, 1);}.div2 {/*倾斜 xy方向度数,第一个参数表示水平方向的倾斜角度,第二个参数表示垂直方向的倾斜角度。*/transform: skew(10deg 10deg);-o-transform: skew(10deg 10deg);}.div2 {/*3d旋转 沿x轴 旋转*//*transform: rotatex(80deg);*//*3d旋转 沿y轴 旋转*/transform: rotatey(80deg);}
2,过渡效果
div { width: 100px; height: 100px; background-color: red; /*过度,宽度过度时间,高度过度时间,动画执行时间*/ transition: width 2s, height 3s, transform 10s;}div:hover { width: 200px; height: 200px; /*旋转*/ /*transform: rotate(361deg);*/ /*过度延迟*/ transition-delay: 2s;}
3,动画效果
div { width: 100px; height: 100px; background-color: blue; position: relative; /*动画 ,指定动画名字,时长 反方向播放:infinite alternate 5s*/ animation: anim 10s infinite alternate 5s;}/*动画效果的 具体内容*/@keyframes anim { 0% { background-color: blue; left: 0px; top: 0px; } 25% { background-color: red; left: 200px; top: 5px; } 50% { background-color: green; left: 220px; top: 220px; } 75% { background-color: gold; left: 100px; top: 200px; } 100% { background-color: blueviolet; left: 0px; top: 200px; }}
4,多列
.div1 { /*列 count 列数*/ column-count: 3; /*列的宽度 和count不要同时使用*/ /*column-width: 200px;*/ -moz-column-count: 3; /*列 的间距*/ -moz-column-gap: 30px; /*分割线 宽度,风格 颜色*/ -moz-column-rule: 5px outset red;}
0 0
- css3的转换效果过渡效果动画效果和列
- css3-过渡动画效果
- CSS3转换过渡动画效果总结
- css3转换,过渡,动画效果知识点汇总
- CSS3的过渡效果
- CSS3的过渡效果
- CSS3变换、过渡、动画效果
- 动画和过渡效果
- 不要忘了css3动画效果transform 和过渡效果 transition:属性 时间 运动效果 延迟时间;
- css3的transition 过渡效果
- CSS-过渡效果和动画效果
- 超棒的CSS3动画页面过渡效果
- CSS3制作各种平滑过渡的动画效果
- CSS3的过渡效果(transition)与动画(animation)
- css3的动画效果
- CSS3的动画效果
- css3过渡效果
- css3过渡效果
- POJ 2923 Relocation(状态压缩+01背包)
- 字符集 编码
- Picasso 实现图片的比例缩放
- mybatis学习笔记(十二) 映射配置文件详解
- JavaScript题目
- css3的转换效果过渡效果动画效果和列
- 【腾讯优测干货】Crash率从2.2%降至0.2%,这个团队是怎么做到的?
- CC中的坐标系
- Android CPU使用率:top和dump cpuinfo的不同
- centos配置
- 四舍五入你所不知道的事
- 数据结构上机测试1:顺序表的应用
- IOS7 导航栏适配
- NodeJS 事件系统详解