CSS3 过渡、动画、多列、用户界面

transition过渡

transition: transition-property transition-duration transition-timing-function transition-delay;//过渡名称 过渡时长 过渡时间曲线 过渡延时
.box {
width: 100px;
height: 100px;
line-height: 100px;
color: red;
text-align: center;
background-color: yellow;
transition: width 2s, height 2s, line-height 2s;
-webkit-transition: width 2s, height 2s, line-height 2s;
-moz-transition: width 2s, height 2s, line-height 2s;
-o-transition: width 2s, height 2s, line-height 2s;
}
.box:hover {
width: 200px;
height: 200px;
line-height: 200px;
}

animation 动画

animation: animation-name animation-duration animation-timing-function animation-delay animation-iteration-count animation-direction animation-play-state animation-fill-mode;
/*动画名称 动画周期 动画时间曲线 动画延时 动画次数 动画方向(normal、alternate) 动画暂停或运行(paused、running) 动画在播放之前或之后,其动画效果是否可见(none、forwards、backwards、both)*/
.box {
position: relative;
width: 100px;
height: 100px;
line-height: 100px;
text-align: center;
background-color: green;
color: yellow;
-webkit-animation: move 5s linear infinite;
}
@-webkit-keyframes move {
0% { left:; top:; }
25% { left: 200px; top:; background-color: orange;}
50% { left: 200px; top: 200px; background-color: red; }
75% { left:; top: 200px; background-color: lightblue; }
100% { left:; top:; }
}

多列

column-count 元素应该被分隔的列数

column-gap 列与列之间的间隔

column-rule 列与列之间的宽度、样式、颜色规则

div {
  -moz-column-count:; /* Firefox */
  -moz-column-rule:3px outset #ff0000;
  -moz-column-gap:40px;
  -webkit-column-count:; /* Safari 和 Chrome */
  -webkit-column-gap:40px;
  -webkit-column-rule:3px outset #ff0000;
  column-count:;
  column-gap:40px;
  column-rule:3px outset #ff0000;
}

用户界面

resize 规定是否可由用户调整元素的尺寸

resize: none|both|horizontal|vertical;

box-sizing 允许您以确切的方式定义适应某个区域的具体内容

box-sizing: content-box|border-box|inherit;

outline-offset 对轮廓进行偏移,并在边框边缘进行绘制

outline-offset: length|inherit;

CSS3 过渡、动画、多列、用户界面的更多相关文章

  1. css3过渡动画 transition

    transition CSS3 过渡是元素从一种样式逐渐改变为另一种的效果. 要实现这一点,必须规定两项内容: 指定要添加效果的CSS属性 指定效果的持续时间 例如 这是下面代码的预览界面预览界面 & ...

  2. CSS3过渡动画&关键帧动画

    一.过渡动画 过渡(transition)动画,就是从初始状态过渡到结束状态这个过程中所产生的动画. 所谓的状态就是指大小.位置.颜色.变形(transform)等等这些属性. Note:不是所有属性 ...

  3. CSS3 过渡动画

    实现如下效果:当鼠标移动到图片上是图片有类似于放大镜放大的效果 transition : CSS属性 时间 当transition中监测的css属性发生变化时,会触发动画 .img_box img{ ...

  4. css3贝塞尔曲线过渡动画速率——transition-timing-function:cubic-bezier(n,n,n,n)

    css3过渡动画速率用到的是三阶贝塞尔曲线,曲线有四个点,p0,p1,p2,p3 有几个属性: linear 规定以相同速度开始至结束的过渡效果(等于 cubic-bezier(0,0,1,1)). ...

  5. css3中动画(transition)和过渡(animation)详析

    css3中动画(transition)和过渡(animation)详析

  6. CSS3过渡、变形和动画

    1.CSS3过渡 所谓CSS3过渡,就是使用CSS3让元素从一种状态慢慢转换到另一种状态.如鼠标的悬停状态就是一种过渡.如下例子: #content a{     text-decoration: n ...

  7. CSS3学习(CSS3过渡、CSS3动画)

    CSS3过渡:transition属性--专门应对颜色.长度.宽度.位置等变化的过渡 通过CSS3,我们可以在不使用Flash和JavaScript的情况下,为当前某元素从某样式改变为某样式的时候添加 ...

  8. 从零开始学习前端开发 — 15、CSS3过渡、动画

    一.css3过渡 语法: transition: 过渡属性 过渡时间 延迟时间 过渡方式; 1.过渡属性(transition-property) 取值:all 所有发生变化的css属性都添加过渡 e ...

  9. CSS3过渡与动画

    一.CSS3 过渡 transition-property 规定过渡效果的 CSS 属性名 -webkit-transition-property: none / all / property; -m ...

随机推荐

  1. HDFS开发中的一些问题(逐步补充)

    1.windows操作系统下运行时报:Failed to locate the winutils binary in the hadoop binary path   java.io.IOExcept ...

  2. JS 20180416课时训练

    <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title> ...

  3. background及background-size

    background有以下几种属性: background-color background-position background-size background-repeat background ...

  4. 【图像处理】使用OpenCV实现人脸和行人检测

      OpenCV全称是Open source Computer Vision Library(开放源代码计算机视觉库),是一个用于图像处理.分析.机器视觉方面的开源函数库,提供了很多图像处理的工具和可 ...

  5. Node笔记(1)

    Node.js 是一个基于 Chrome V8 引擎的 JavaScript 运行环境.  进程 1.process.argv 用于获取当前进程信息 0--node.exe的目录1--js文件的目录2 ...

  6. sessionStorage缓存滚动条位置

    想象在一个列表页,用户上滑页面浏览数据,点击某一条进入详情页,之后再从详情页返回列表页时不会想再从头去查看数据,这就要求我们记录用户刚刚浏览的位置,而不是重新刷新页面到了页面顶部.这里需要用到sess ...

  7. PHP 中 call_user_func 的使用

    call_user_func函数类似于一种特别的调用函数的方法,使用方法如下 第一种情况: function set_max($a,$b) { if($a>$b) echo $a; else e ...

  8. 关于IP数据包首部校验字段的理解

    关于IP数据包首部校验字段的理解 IP数据包格式及首部个字段:  www.2cto.com   对上表的各个数据项就不一一解释了,这里具体关注以下几个数据项: 1.4位首部长度:这里的长度指的是4By ...

  9. redis_ 5 集群

    [转自 ]https://www.cnblogs.com/hjwublog/p/5681700.html#_label0 Redis集群简介 Redis 集群是3.0之后才引入的,在3.0之前,使用哨 ...

  10. Jquery Math ceil()、floor()、round()比较与用法

    Math.ceil():向上取值 如:Math.ceil(2.1) --  结果为  3 Math.ceil(-2.1)  -- 结果为-2 结论:正入 负舍 Math.floor(): 先下取值 入 ...