我想讓我的div淡出使用純CSS。但是它沒有做擋光,不透明度沒有改變?CSS3轉換淡出沒有發生
我的代碼有什麼問題?
<html>
<head>
<style type="text/css">
body {
background-color: red;
}
#box{
width: 300px;
height: 300px;
background-color: green;
-moz-box-shadow: 0px 0px 5px 5px #cc6600;
-webkit-box-shadow: 0px 0px 5px 5px #cc6600;
-webkit-transition: opacity 5s;
-webkit-transform: opacity: 0;
-webkit-transition-delay: 1s;
-moz-transition: opacity 5s;
-moz-transform: opacity: 0;
-moz-transition-delay: 1s;
}
</style>
</head>
<body>
<div id="box">
Insert your content in here...
</div>
</body>
</html>