Skip to content

Instantly share code, notes, and snippets.

@exarcheia-web
Created February 6, 2014 09:53
Show Gist options
  • Save exarcheia-web/8841308 to your computer and use it in GitHub Desktop.
Save exarcheia-web/8841308 to your computer and use it in GitHub Desktop.
SVG example
/* SVG example */
/* http://webdesign.tutsplus.com/articles/getting-started-with-scalable-vector-graphics-svg--webdesign-7515 */
#svg {
background: rgba(0,0,0,0.2);
height: 230px;
width: 230px;
}
#line1 {
stroke:rgb(0,0,0);
stroke-width:4;
}
#circle1 {
stroke: black;
stroke-width: 4;
fill: white;
}
#text1 {
font-family: Helvetica,Arial,sans-serif;
font-weight: bold;
font-size: 34px;
fill : #fff;
text-shadow: 0 0 9px black;
transition: .8s text-shadow;
}
#svg:hover #text1 {
fill: black;
text-shadow: 0 0 9px white;
}
<svg id="svg">
<line id="line1" x1="10" y1="10" x2="220" y2="220"/></line>
<circle id="circle1" cx="110" cy="110" r="50" />
<text id="text1" x="10" y="34">svg example</text>
</svg>
// alert('Hello world!');
{"view":"split","fontsize":"100","seethrough":"","prefixfree":"1","page":"css"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment