순수 CSS를 사용하여 내 div를 페이드 아웃하려고합니다. 하지만 아무것도하지 않으면 불투명도가 변하지 않습니다.CSS3 전환 페이드 아웃이 발생하지 않음
내 코드가 잘못되었습니다.
-webkit-transform: opacity: 0;
-moz-transform: opacity: 0;
불투명도가 "변화"와 함께 사용할 수있는 것이 아닙니다 :
<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>