Home » Posts » Kits » Pro » Layer Kit Pro » Using SVG View
Using SVG View
Last updated on September 24, 2020 XD, PSD, AI and INDD layers to SVG with clean and clear code becomes simple. Translate your XD, PSD, AI and INDD layers to SVG with advanced support for text, images and shapes.
Example Image Element
1
2
3
4
5
6
7
8
9
10
| <svg id="button_copy" width="310" height="166" xmlns:xlink= "//www.w3.org/1999/xlink" xmlns="//www.w3.org/2000/svg">
<style type="text/css">
#button_copy{
position:absolute;
top:240px;
left:446px;
}
</style>
<image xlink:href="ek125_303_layer_effects/button_copy.png" fill="#" width="310px" height="166px"/>
</svg> |
Example Text Element
1
2
3
4
5
6
7
8
9
10
11
12
| <svg id="export_kit_v1_2_5" width="187" height="25" xmlns="//www.w3.org/2000/svg">
<style type="text/css">
#export_kit_v1_2_5{
position:absolute;
top:869px;
left:506px;
}
</style>
<text font-family="Arial, 'Helvetica Neue', Helvetica, sans-serif" x="93.5" text-anchor="middle" y="20" font-size="18" fill="#FFFFFF">
EXPORT KIT v1.2.5
</text>
</svg> |
Example Shape Element
1
2
3
4
5
6
7
8
9
10
| <svg id="button_bg" width="307" height="156" xmlns="//www.w3.org/2000/svg">
<style type="text/css">
#button_bg{
position:absolute;
top:241px;
left:73px;
}
</style>
<rect width="307" height="156" rx="30px" ry="30px" fill="#CE3636"/>
</svg> |
Customize the SVG View to include additional information with the XD, PSD, AI and INDD layer such as effects, advanced text rendering and more.
Example Layer Effects
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
| <svg id="button_bg" width="315" height="160" xmlns="//www.w3.org/2000/svg">
<defs>
<filter id="button_bg_filter" x="-25%" y="-25%" width="150%" height="150%">
<feOffset result="is-d" in="SourceAlpha" dx="0" dy="15" />
<feGaussianBlur result="is-s" in="is-d" stdDeviation="5" />
<feComposite operator="out" in="SourceGraphic" in2="is-s" result="is-i"/>
<feFlood flood-color="#000000" flood-opacity="1" result="is-f"/>
<feComposite operator="in" in="is-f" in2="is-i" result="is-c"/>
<feComponentTransfer in="is-c" result="is-c">
<feFuncA type="linear" slope=".75"/>
</feComponentTransfer>
<feComposite operator="over" in="is-c" in2="SourceGraphic" result="iis"/>
</filter>
</defs>
<style type="text/css">
#button_bg{
position:absolute;
top:663px;
left:819px;
}
</style>
<rect width="315" height="160" rx="30px" ry="30px" filter="url(#button_bg_filter)" fill="#CE3636"/>
</svg> |
Example Inline Content
1
2
3
| <svg id="button_copy" width="310" height="166" style="position:absolute;top:240px;left:446px;" xmlns:xlink= "//www.w3.org/1999/xlink" xmlns="//www.w3.org/2000/svg">
<image xlink:href="ek125_303_layer_effects/button_copy.png" fill="#" width="310px" height="166px"/>
</svg> |
LOGIN NOW: Get instant access to our free Online Training - click here.