Created
November 7, 2011 04:54
-
-
Save konishi/1344209 to your computer and use it in GitHub Desktop.
CSSで透過グラデーションを細かく指定する方法 ref: http://qiita.com/items/909
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
gradient { | |
background: -moz-linear-gradient(top, | |
rgba(255,255,255,0), | |
rgba(255,255,255,0.8) 30%, | |
rgba(255,255,255,1)); | |
background: -webkit-gradient(linear, left top, left bottom, | |
from(rgba(255,255,255,0)), | |
color-stop(0.3, rgba(255,255,255,0.8)), | |
to(rgba(255,255,255,1))); | |
background: -o-linear-gradient(top, | |
rgba(255,255,255,0), | |
rgba(255,255,255,0.8) 30%, | |
rgba(255,255,255,1)); | |
background: linear-gradient(top, | |
rgba(255,255,255,0), | |
rgba(255,255,255,0.8) 30%, | |
rgba(255,255,255,1)); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment