国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 開發 > CSS > 正文

CSS3實例教程:transitions測試學習

2024-07-11 09:02:03
字體:
來源:轉載
供稿:網友

武林網(www.survivalescaperooms.com)文章簡介:CSS3實例教程:transitions測試學習。

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">
<html xmlns="">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>transitons</title>
<style type="text/css">
.transitions{
background:#000;
color:#fff;
width:500px;
line-hight:50px;
height:100px;
-moz-transition: background-color 2s linear;
-o-transition:background-color 2s linear;
-webkit-transition:background-color 2s linear;

}
.transitions:hover{
background:#f00;}
.test2{
background:#000;
color:#f00;
width:500px;
height:50px;
line-height:50px;
-webkit-transition-property:background-color;
-webkit-transition-duration:4s,1s; //使用最后一個值
-webkit-transition-timing-function:linear;

-moz-transition-property:background-color;
-moz-transition-duration:4s,1s;//使用第一個值
-moz-transition-timing-function:linear;

-o-transition-propery:background-color;
-o-transition-duration:5s,1s;//使用第一個值
-o-transition-timing-function:linear;

}
.test2:hover{
background-color:#fff;
}
.test3{
color:#f00;
background-color:#00F;
width:500px;
height:50px;
-o-transition:background-color 2s linear,color 2s linear,width 2s linear,height 2s linear;
-webkit-transition:background-color 2s linear,color 2s linear, width 2s linear,height 2s linear;
-moz-transition:background-color 2s linear, color 2s linear,width 2s linear,height 2s linear;
}
.test3:hover{
width:200px;
height:200px;
color:#000;
background-color:#f00;}
.test4{
padding:5px;
line-height:24px;
color:#f00;
background-color:#00F;
width:100%;
background-image:url(../huaban/img/default_pin_bg.gif);
-o-transition:background-color 2s linear,color 2s linear,width 2s linear,height 2s linear,background-image 2s linear;
-webkit-transition:background-color 2s linear,color 2s linear, width 2s linear,height 2s linear,background-image 2s linear;
-moz-transition: background-color 2s linear,color 2s linear,width 2s linear,height 2s linear,background-image 2s linear;
}
.test4:hover{
width:400px;
color:#000;
background-color:#f00;
background-image:url(../huaban/img/login_or.png)}

.test5 img{
position:absolute;
top:500px;
left:0;
-webkit-transform:rotate(0deg);
-webkit-transition:left 2s linear,-webkit-transform 2s linear;
-moz-transform:rotate(0deg);
-moz-transition:left 2s linear,-moz-transform 2s linear;
-o-transform:rotate(0deg);
-o-transition:left 2s linear,-o-transform 2s linear;
}
.test5:hover img{
position:absolute;
left:100px;
-webkit-transform:rotate(720deg);
-moz-transform:rotate(720deg);
-o-transform:rotate(720deg);
}

</style>
</head>

<body>
<div class="transitions">
<h1>實驗文字變色</h1>
my name is Wu Qianqian


</div>
<div class="test2">
<h1>試驗文字底色變為底色類似變無的感覺</h1>

hello
</div>
<div class="test3">
<h1>寬高度大小的改變。實現縮放隱藏效果,平滑漸變</h1>

how old are you</div>
<div class="test4">
<h1>transition:property duration timing-function 背景圖片的改變</h1>
<ol>
<li>propery:表示對那個屬性進行平滑過渡的</li>
<li>duration:表示平滑過渡的時間</li>
<li>timing-function:表示通過什么方法進行平滑過渡</li>

</ol></div>

<div class="test5">
<h1>圖片的旋轉滾動效果,利用定位距離的屬性和旋轉角度的屬性</h1>
<img src="../huaban/img/apple-touch-icon-iphone4.png" />

</div>
</body>
</html>

發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 桐城市| 海淀区| 抚顺县| 汉源县| 东明县| 广水市| 乌恰县| 景东| 神木县| 东源县| 德清县| 宝鸡市| 东兴市| 林芝县| 兴安盟| 辽源市| 龙州县| 横峰县| 新邵县| 赤水市| 白河县| 习水县| 阜新市| 阳曲县| 西藏| 绥滨县| 彝良县| 西华县| 镇原县| 勃利县| 穆棱市| 仙游县| 玛纳斯县| 响水县| 清徐县| 靖西县| 志丹县| 义马市| 漳平市| 泉州市| 台南市|