Created
May 20, 2013 13:36
-
-
Save cssoul/5612261 to your computer and use it in GitHub Desktop.
利用径向渐变实现 不规则渐变阴影
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.top-shadow { | |
width: 200px; | |
height: 200px; | |
} | |
.top-shadow:after { | |
content: ""; | |
width: 100%; | |
height: 8px; | |
display: block; | |
background-image: -webkit-radial-gradient(center top,ellipse farthest-side , rgba(0, 0, 0, 0.3) , transparent); | |
background-repeat: no-repeat; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment