Created
June 5, 2013 18:02
-
-
Save erikjung/5715877 to your computer and use it in GitHub Desktop.
Mucking around with SVG and CSS
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
/** | |
* Mucking around with SVG and CSS | |
*/ | |
.bubble { | |
} | |
#gradient stop:nth-child(1) { | |
stop-color: black; | |
stop-opacity: 0; | |
} | |
#gradient stop:nth-child(2) { | |
stop-color: black; | |
stop-opacity: .2; | |
} | |
.bubble circle { | |
fill: #FFB900; | |
} | |
.bubble .overlay { | |
fill: url(#gradient); | |
} |
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
<svg> | |
<defs> | |
<radialGradient id="gradient"> | |
<stop offset="0%" /> | |
<stop offset="100%" /> | |
</radialGradient> | |
</defs> | |
</svg> | |
<svg class="bubble" width="600" height="600"> | |
<circle r="200" cy="300" cx="300"></circle> | |
<circle class="overlay" r="200" cy="300" cx="300"></circle> | |
</svg> |
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
// alert('Hello world!'); |
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
{"view":"split-vertical","fontsize":"100","seethrough":"","prefixfree":"1","page":"all"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment