transform的形变

//  display:inline-block;转换块级元素    //  opacity: 1;透明度      //transition:1s;动画执行时间


<!doctype html>

<html>
<head>
<meta charset="utf-8">
<title>无标题文档</title>
<link href="xingbian.css" rel="stylesheet"/>
</head>

<body>

<div id="one">
旋转
</div>

<div id="two">
移动
</div>

<div id="three">
缩放
</div>

<div id="fore">
扭曲
</div>

<div class="five">
阴影
</div>

</body>

</html>



CSS代码


@charset "utf-8";
/* CSS Document */


#one{ width:200px; 
height:200px; 
margin-top:50px; margin-left:60px;
background:hsla(233,76%,46%,1.00); 
transform:rotate(50deg)}



#two{ width:200px; float:left;
margin-top:50px;
margin-left:400px; 
height:200px; 
background:hsla(233,76%,46%,1.00); 
border:1px solid blue;
transform:translate(100px,20px);}


#three{ width:200px;  float:right;
margin-top:100px; 


height:200px; 
background:hsla(233,76%,46%,1.00); 
transform:scale(1,1.5);}

#fore{ width:200px; 
margin-top:100px; 
margin-left:60px; 
height:200px; 
background:hsla(233,76%,46%,1.00); 
transform:skew(30deg,10deg);
transform-origin:100% 50%;}



.five{ width:100px; height:100px; background:hsla(359,87%,51%,1.00); box-shadow: 10px 10px 10px hsla(174,81%,50%,1.00);
 border-radius:50%; text-shadow:10px 10px 10px hsla(174,81%,50%,1.00)}






评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值