CSS3过渡
来源:互联网 发布:如何选择床垫 知乎 编辑:程序博客网 时间:2024/04/27 15:19
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题</title>
<style type="text/css">
div{
margin:50px;
width:90px;
height:60px;
font-family:sans-serif;
text-align:center;
line-height:60px;
background-color:#91E22C;
border-radius:15px;
opacity:0.3;
transition: width 1s, height 1s,opacity 1s,background-color 1s;
-moz-transition:width 1s, height 1s,opacity 1s,background-color 1s, -moz-transform 1s;/* Firefox 4 */
-o-transition:width 1s, height 1s,opacity 1s,background-color 1s, -o-transform 1s;/* Opera */
-webkit-transition: width 1s, height 1s,opacity 1s,background-color 1s, -webkit-transform 1s;/* Safari and Chrome */
}
div:hover{
opacity:1;
width:120px;
height:90px;
background-color:#1EC7E6;
transform:rotate(360deg);
-moz-transform:rotate(360deg);/* Firefox 4 */
-o-transform:rotate(360deg);/* Opera */
-webkit-transform:rotate(360deg);/* Safari and Chrome */
}
</style>
</head>
<body>
<div>
css3过度
</div>
</body>
</html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题</title>
<style type="text/css">
div{
margin:50px;
width:90px;
height:60px;
font-family:sans-serif;
text-align:center;
line-height:60px;
background-color:#91E22C;
border-radius:15px;
opacity:0.3;
transition: width 1s, height 1s,opacity 1s,background-color 1s;
-moz-transition:width 1s, height 1s,opacity 1s,background-color 1s, -moz-transform 1s;/* Firefox 4 */
-o-transition:width 1s, height 1s,opacity 1s,background-color 1s, -o-transform 1s;/* Opera */
-webkit-transition: width 1s, height 1s,opacity 1s,background-color 1s, -webkit-transform 1s;/* Safari and Chrome */
}
div:hover{
opacity:1;
width:120px;
height:90px;
background-color:#1EC7E6;
transform:rotate(360deg);
-moz-transform:rotate(360deg);/* Firefox 4 */
-o-transform:rotate(360deg);/* Opera */
-webkit-transform:rotate(360deg);/* Safari and Chrome */
}
</style>
</head>
<body>
<div>
css3过度
</div>
</body>
</html>
1 0
- css3过渡
- CSS3过渡
- css3过渡
- CSS3过渡
- CSS3过渡
- CSS3过渡
- <css3>过渡
- CSS3 过渡
- CSS3 过渡
- CSS3--过渡
- CSS3 过渡
- CSS3-过渡
- 【css3】过渡
- CSS3过渡
- CSS3-过渡
- CSS3过渡
- CSS3过渡
- CSS3过渡
- Matlab小记
- 辗转相除法gcd(a,b)
- ie浏览器不能能上网,但火狐等浏览器可以
- 基于wakeup_source的linux内核睡眠机制
- c/c++头文件的作用
- CSS3过渡
- BestCoder75 —— 站在出题人的视角
- JavaScript绑定事件
- 数组打包不同的元素
- 【GDKOI2016】D2T1染色大战
- Rescue
- windows安装Ubuntu
- java中静态代码块的用法及其与静态方法的区别
- QT_Socket_TCP简单程序