CSS radial gradient as modal overlay background like Apple's -
i couldn't seem right. want radial gradient overlay similar apple's, nothing doing seemed close. i'd center circle have 25% radius, settle 350px radius.
they this, yet i've seen newer versions user <canvas>
. note ie or opera, need transparent png (not included in css code below)
html:
<html> <head> <link rel="stylesheet" href="gogo.css" type="text/css" media="screen" title="no title" charset="utf-8"> </head> <body class=" bg"> <div class="radialbg"> heelo world </div> </body> </html>
css:
body { margin: 0; padding: 0; } .bg { background: url(pattern.jpeg) repeat; } .radialbg { background: transparent -webkit-gradient(radial, center center, 50, center center, 460, from(transparent), to(#000)); background: -moz-radial-gradient(circle, transparent, #000); width: 100%; height: 100%; }
Comments
Post a Comment