雪花飄落效果+雪花紅梅 電視劇步步驚心插曲-劉詩詩
<!doctype html>
<html lang="en">
<head>
<!-雪花紅梅 電視劇步步驚心插曲-劉詩詩-->
<meta charset="UTF-8"> <!--宣告編碼 UTF-8(國際編碼)-->
<title>Document</title>
<style type="text/css">
*{margin:0;padding:0;}
#header{width:100%;
height:315px;
background:url("images/snow-bg.png")repeat-y center,url("images/header-bg.png");
-webkit-animation:auto 20s linear infinite;
}
#header:hover{-webkit-animation-play-state:paused;}/*規定動畫暫停還是播放*/
@-webkit-keyframes auto{
0%{background-position:center 0, 0 0}
100%{background-position:center 885px,0 0}
}
@-webkit-keyframes play{
0%{-webkit-transform:translate(0,-315px);}
100%{-webkit-transform:translate(0,0);}
}
#header .con .tree,#header .con .ice{
-webkit-animation:play 1s ;
}
#header .con{width:960px;height:315px;
background-image:url("images/con-bg.png");
background-repeat:no-repeat;
background-position:0 204px;
margin:auto;
position:relative;
}
#header .con .tree{width:112px;
height:137px;
position:absolute;
background:url("images/tree.png");
}
#header .con .ice{width:115px;height:103px;
background:url("images/ice.png");
position:absolute;
left:410px;
top:210px;
}
#header .con .tree1{left:35px;
top:169px;
-webkit-animation-duration:.6s; /*完成動畫所需要的時間*/
}
#header .con .tree2{left:200px;
top:180px;
-webkit-animation-duration:.2s; /*完成動畫所需要的時間*/
}
#header .con .tree3{left:350px;
top:125px;
-webkit-animation-duration:.3s; /*完成動畫所需要的時間*/
}
#header .con .tree4{left:515px;
top:150px;
-webkit-animation-duration:.4s; /*完成動畫所需要的時間*/
}
#header .con .tree5{left:680px;
top:170px;
-webkit-animation-duration:.6s; /*完成動畫所需要的時間*/
}
#header .con .tree6{left:805px;
top:125px;
-webkit-animation-duration:.8s; /*完成動畫所需要的時間*/
}
</style>
</head>
<body>
<div id="header">
<div class="con">
<div class="tree tree1"></div>
<div class="tree tree2"></div>
<div class="tree tree3"></div>
<div class="ice"></div>
<div class="tree tree4"></div>
<div class="tree tree5"></div>
<div class="tree tree6"></div>
</div>
</div>
<embed height="50" width="100" src="龔淑均 - 雪花紅梅.mp3">
<p>如果你無法聽到該音訊,那麼可能你的電腦或瀏覽器不支援該檔案格式。</p>
<p>或者你沒有開啟揚聲器。</p>
</body>
</html>