HTML CSS examples for CSS Property:opacity
CSS opacity change on div with time delay
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> div {<!-- w w w . j ava2s .co m--> background:Chartreuse; width:201px; height:201px; -webkit-animation:smooth 6s ease-in; -moz-animation:smooth 6s ease-in; -o-animation:smooth 6s ease-in; -ms-animation:smooth 6s ease-in; animation:smooth 6s ease-in; } @-webkit-keyframes smooth { 0% { opacity:0; } 100% { opacity:2; } } @-moz-keyframes smooth { 0% { opacity:0; } 100% { opacity:2; } } @-o-keyframes smooth { 0% { opacity:0; } 100% { opacity:2; } } @keyframes smooth { 0% { opacity:0; } 100% { opacity:2; } } </style> </head> <body> <div> </div> </body> </html>