Skip to content

Instantly share code, notes, and snippets.

@erikjung
Created June 5, 2013 18:02
Show Gist options
  • Save erikjung/5715877 to your computer and use it in GitHub Desktop.
Save erikjung/5715877 to your computer and use it in GitHub Desktop.
Mucking around with SVG and CSS
/**
* 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);
}
<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>
// alert('Hello world!');
{"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