09

作者: 我的好昵称 | 来源:发表于2018-11-28 20:14 被阅读0次

<!doctype html>
<html lang="en">
<stype type=""text/css">
.box
width:100px;
height:100px;
background-color:gold;
/在哪产生动画的时间,运动曲线。延迟
/
transition:border-radius 500ms ease.width 500ms ease height 500ms ease ls,backgrund-color 500ms ese 1.5*/
transition: all 500ms ease;
.box:hover{
width:hover{
height:300px
border-radiuspx
}
</stype>
</head>
<div class="box"<.div>
</body>
</html>

圆角阴影透明度HTML
<!doctype html>
<html lang="en>
<head>
<meat charset="utf8">
<style type="text/css">
.box{
width:200px;
height:200px;
border:2px solid #000
background-color:gold
margin:50px auto 0;
/border-top-left-radius: 100px 50px;左上角为椭圆圆角/
/border-top-left-radius: 100px;
border-top-right-radius: 100px;左、右上角为正圆圆角
/
/border-radius: 40px;曲率半径为40的圆角矩形/
/border-radius: 20%;最大200px,20%即40px/
border-radius: 50%;/正圆/

.box1{
width:200px;
height:400px;
background-color:gold;
margin;100px auto 0;
}
.box2{
width:200px;
height:40px;
background-color:gold;
margin: 0px 0px 20px 2px red inset;
}
body{
background-color:cyan
}
.box3{
wodth:20px;
height:200px;
background-color;gold;
margin:50px auto 0;
border: 2px solid #000
boder-radius:50%
opactype:0.3
filter:alpha(opacity=30);
text-aling:center;
line-height:200px;
}
.box4{
width;200px;
height:200px;
/背景透明/
border:2px solid rgba(255,215,0,0,
text-aling;center;
ling-height;200px
}
</style>
</head>
<div class="box"1></div>
<div class="box2"></div>
<div class="box3"</div>
< div class="box4">窗前明月光</div>.

运动曲线
<!doctype html>
<html lang="em">
<head>
<meta charset=utf8">
<stype type="text/css">
div{
width:50px;
height: 50px;
background-color:gold
maarigin-bottom:20px;
}
div:ntt-child(1){
/均速/
transtion:all ls liner;
}
div:nth-child(2){
/*开始和 结束慢速,中间加速

transition: all 1s ease;
}
div:nth-child(3){
/开始慢速,结尾突然停止/
transition: all 1s ease-in;
}
div:nth-child(4){
/突然开始,结束时慢速/
transition: all 1s ease-out;
}
div:nth-child(5){
/开始和结束时慢速/
transition: all 1s ease-in-out;
}
div:nth-child(6){
/贝塞尔(贝兹)曲线/
/transition: all 1s cubic-bezier(0.250,0.250,0.750,0.750);匀速/
/超出再缩回的弹性效果/
transition: all 1s cubic-bezier(0.470, -0.485, 0.460, 1.435);
}
div:hover{
width: 1000px;
}
</style>
</head>
<body>
<div>linear</div>
<div>ease</div>
<div>ease-in</div>
<div>ease-out</div>
<div>ease-in-out</div>
<div>bezier</div>
</body>
</html>

图片文字遮绕
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>图片文字遮罩</title>
<style type="text/css">
.box{
width: 200px;
height: 300px;
margin: 50px auto 0;
border: 1px solid #000;
position: relative;
/默认文字不可见/
overflow: hidden;
}
.box img{
width: 200px;
height: 300px;
}
.box .pic_info{
width: 200px;
height: 200px;
background-color: rgba(0,0,0,0.5);
color: #fff;

        /*定位使色块在图片正下方*/
        position: absolute;
        left: 0;
        top: 300px;

        transition: all 500ms cubic-bezier(0.470, -0.485, 0.460, 1.435);
    }
    .box:hover .pic_info{
        /*色块上移*/
        top:150px;
    }
    /*间距用p标签的margin,而不直接给.pic_info用padding,因为padding会改变盒子大小*/
    .box .pic_info p{
        margin: 20px;
        line-height: 30px;
    }
</style>

</head>
<body>
<div class="box">
<img src="img/location_bg.jpg" alt="玫瑰花">
<div class="pic_info">
<p>图片说明:这是一朵玫瑰花图片说明:这是一朵玫瑰花图片说明:这是一朵玫瑰花图片说明:这是一朵玫瑰花</p>
</div>
</div>
</body>

变形
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>变形</title>
<style type="text/css">
.box,.box2,.box3,.box4{
width: 200px;
height: 200px;
background-color: gold;
margin: 50px auto 0;
transition: all 1s ease;
}
.box:hover{
/box的动画不会影响到box2/
/位移/
transform: translate(50px,50px);
}
.box2:hover{
/沿Z轴旋转360度/
transform: rotate(360deg);
}
.box3:hover{
/缩放/
transform: scale(0.5,0.2);
}
.box4:hover{
/斜切/
/transform: skew(45deg,0);/
transform: skew(0,45deg);
}
</style>
</head>
<body>
<div class="box"></div>
<div class="box2"></div>
<div class="box3"></div>
<div class="box4"></div>
</body>
</html>

相关文章

  • 2018-04-08

    09:02 到公司 09:03-09:09 处理下日报问题 09:10-09:14 整理桌面卫生内容 09:15-...

  • 2018-05-08

    09:05 到公司 09:06-09:08 整理桌面卫生 09:09-09:20 思考今日任务安排 09:21-0...

  • 2019-10-09

    2019-09-232019-09-242019-09-252019-09-262019-09-27上班2019-...

  • 2018-04-18

    09:03 到公司 09:03-09:08 整理桌面卫生 09:09-09:19 思考早会分派的任务情况 09:2...

  • 2018-04-26

    09:08 到公司 09:09-09:10 整理桌面卫生 09:11-09:16 整理个人简书内容 09:17-0...

  • 2018-05-22

    09:15 到公司 09:15-09:19 整理桌面卫生 09:20-09:36 组织Java部门早会内容 09:...

  • 2018-04-23

    09:15 到公司 09:16-09:18 整理桌面卫生内容 09:19-09:41 Java组早会 09:42-...

  • 2018-03-25

    09:02 到公司 09:03-09:07 整理桌面卫生 09:08-09:20 查看处理git上面的事情 09:...

  • 2018-03-31

    09:18 到公司 09:20-09:38 部门内部早会 09:39-09:45 整理桌面卫生 09:46-10:...

  • 2018-05-25

    09:15 到公司 09:16-09:17 整理桌面卫生 09:18-09:20 思考当日任务安排处理 09:21...

网友评论

      本文标题:09

      本文链接:https://www.haomeiwen.com/subject/cbraqqtx.html