Top profile Call Girls In Mau [ 7014168258 ] Call Me For Genuine Models We ar...
SVG and the web
1. SVG and the Web
How to make use of SVG images and text to
improve performance and look.
2. SVG offers a truly resolution-independent technique
for presenting graphics on the Web.
Scalable Vector Graphics
Open Source Code
Coded in XML
Based on math equations and points
SVG is a W3C recommendation
Has been around since 2001
Main competitor to Flash
SVG or bust!
6. Advantages of SVG Graphics
SVG images can be created and edited with any text editor.
SVG images can be searched, indexed, scripted, and compressed.
SVG images are scalable and zoomable.
SVG is an open standard.
SVG is ideal for creating generated images, graphs and diagrams.
Every element and every attribute in SVG files can be animated.
7. SVG - Simple Example
<svg
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink">
<rect x="10" y="10" height="100" width="100"
style="stroke:#ff0000; fill: #0000ff"/>
</svg>
The resulting SVG image is shown:
8. SVG - Simple Example in Browser
<img src="circle.svg">
OR
<svg class=”myCSSClass”>
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink">
<rect x="10" y="10" height="100" width="100" style="stroke:#ff0000; fill:#0000ff"/>
</svg>
9. SVG - Simple Example in Browser (cont.)
SVG as background image in a DIV tag:
<div class=”myCSSClass”>
</div>
With
.myCSSClass {
background: url(“circle.svg”);
}
10. SVG - Simple Example in Browser (cont.)
Wrap SVG image in a anchor tag:
<a href=”http://google.com” >
<svg class=”myCSSClass”>
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink">
<rect x="10" y="10" height="100" width="100" style="stroke:#ff0000; fill:#0000ff"/>
</svg>
</a>
11. SVG - Simple Example in Browser (cont.)
SVG image before hover:
SVG image after hover:
.myCSSClass:hover {
fill:#00ff00;
}
19. SVG - Further Reading
SVG Tutorial by By Jakob Jenkov
http://tutorials.jenkov.com/svg/index.html
w3schools.com -- SVG Tutorial
http://www.w3schools.com/svg/
Smashing Magazine - Resolution Independence With SVG
http://www.smashingmagazine.com/2012/01/16/resolution-independence-with-svg/