如何製作動畫如http://fitch.com請參閱頂部,右側,底部和左側。它看起來像裝..如何製作本網站的動畫http://fitch.com
<!DOCTYPE html>
<html>
<head>
<style>
.topLoader {
width: 100%;
height: 5px;
background-color: #fff;
position: relative;
-webkit-animation-name: example; /* Chrome, Safari, Opera */
-webkit-animation-duration: 4s; /* Chrome, Safari, Opera */
animation-duration: 2s;
animation-name: mytop ;
}
.bottomLoader {
width: 100%;
height: 5px;
background-color: #fff;
position: relative;
-webkit-animation-name: example; /* Chrome, Safari, Opera */
-webkit-animation-duration: 4s; /* Chrome, Safari, Opera */
animation-duration: 2s;
animation-name: mybottom ;
}
@keyframes mytop {
0% {background-color:#000000; left:0px; top:0px;}
100% {background-color:#000000; left:100%; top:0px;}
}
@keyframes mybottom {
0% {background-color:#000000; left:100%; top:100%;}
100% {background-color:#000000; left:0px; top:100%;}
}
</style>
</head>
<body>
<div class="topLoader"></div><br>
<div class="rightLoader"></div><br>
<div class="leftLoader"></div><br>
<div class="bottomLoader"></div><br>
</body>
</html>
ur測試代碼有什麼問題? – Kenneth
我需要充分的先生我有頂部和底部,但右側和左側是我的問題。 – JeffKuletz31