+ All Categories
Home > Design > What is an SVG and How Should it be Used in Web Design?

What is an SVG and How Should it be Used in Web Design?

Date post: 13-Apr-2017
Category:
Upload: katie-hecox
View: 109 times
Download: 1 times
Share this document with a friend
17
SVG UX Designer: JAVON 1
Transcript
Page 1: What is an SVG and How Should it be Used in Web Design?

SVG

UX Designer: JAVON

1

Page 2: What is an SVG and How Should it be Used in Web Design?

2

Scalable Vector Graphics

XML-based vector image format for two-

dimensional graphics with support for

interactivity and animation. The SVG

specification is an open standard developed

by the World Wide Web Consortium (W3C)

since 1999.

” …Baby One More Time” — Britney Spears

Page 3: What is an SVG and How Should it be Used in Web Design?

Why SVG?

Browsers: IE 9+, Firefox 4+, Chrome 4+,

Safari 4+, and Opera4+

Scale: Fits any size on a web page

XML Format: Shapes not dots

File Size: Saved as small as possible

3

Page 4: What is an SVG and How Should it be Used in Web Design?

4

VSSVG FONT ICON

SVG by Javon Bell

Page 5: What is an SVG and How Should it be Used in Web Design?

5

Vectors? Winner: SVG SVG icons are 100% vector. Font icons are considered text and the browser treats it as such. This means your font icons will not be as sharp as you may expect them to be.

CSS? Winner: SVG The options are unlimited as you have the ability to control multiple parts of the SVG. Font icons are limited to the font CSS, nothing more.

Browser Fails? Winner: SVG If the SVG is part of the HTML, it will display. No worries about call backs to the server because its already part of the HTML. Not every browser supports @fontface, and blocking applications may prevent your font from showing.

Accessibility? Winner: SVG SVG has many attributes within the file (ex. <title><desc>) to help you better define your graphic. Font icons use pseudo and span elements to display the font. Additional labor is needed for any screen reader to know it is an icon.

Page 6: What is an SVG and How Should it be Used in Web Design?

6

Winner: SVG

Bottom line, SVGs are viewable on almost

every browser (except for IE 8 and below if

you want to get technical).

Page 7: What is an SVG and How Should it be Used in Web Design?

7

Designing SVGs

Adobe Illustrator (Mac & PC)

Sketch (Mac Only)

Inkscape (Mac & PC)

Page 8: What is an SVG and How Should it be Used in Web Design?

8

SVG Setup

(Sketch Example)

1) Select the vector.

2) Change the name of the layer as this

will become your id or class name for

browser customization.

3) Export as SVG.

Page 9: What is an SVG and How Should it be Used in Web Design?

9

SVG Development

HTML: Paste this file into the document

and make needed edits. Delete

commented out data and make any

needed changes to the class or id.

CSS: Use the SVG id or class name to

call the specific part to style.

Page 10: What is an SVG and How Should it be Used in Web Design?

10

SVG Examples (Reusser Design)

www.wpartners.org (Developed by Nick Johnson)

www.neindiana.com (Developed by Javon Bell)

www.iotron.com

www.polarleasing.com

Page 11: What is an SVG and How Should it be Used in Web Design?

11

World Partners

World Partners wanted a way to show all of

their ministries around the world. Nick Johnson

(@thebrawnyman) used an existing SVG of the

world and customized each country with its

own class name based on the country, ministry

type (missionaries, national partners, national

churches, and projects). He also added

javascript click function to display each

ministry type for the user to view.

[ View Live SVG ]

Page 12: What is an SVG and How Should it be Used in Web Design?

12

Northeast Indiana Regional

Partnership

NEIRP wanted to display their counties as a

clickable graphic. Javon Bell (@javonbell) took

the graphic and converted it to a SVG in Sketch

to organize each county by class names. Link

tags were added to each county along with the

URL path.

[ View Live SVG ]

Page 13: What is an SVG and How Should it be Used in Web Design?

13

Clickable SVG

In Safari, you have to modify the link in

the SVG in order to make the click

function work. You will need to add

xlink: right before the href in the link tag.

Example: <a xlink:href="/northeast-

indiana/member-county-profiles/

steuben-county">

“I’m afraid I just blue myself”- Tobias Fünke

Page 14: What is an SVG and How Should it be Used in Web Design?

14

Future of SVG

(Personal Opinion)

1) UI (user interface) designers and

front-end developers will be work closer

on projects.

2) Online ads will utilize SVG for

advertisements flexibility.

3) PNG graphic images will see a major

decrease in usage.

4) Larger increase in SVG animated

graphics over the use of video.

Page 16: What is an SVG and How Should it be Used in Web Design?

16

Conclusion

If you are using a graphic on your web

development project, use SVGs. For everything

else, there’s MasterCard.

Page 17: What is an SVG and How Should it be Used in Web Design?

Fin

UX Designer: JAVON

www.reusserdesign.com


Recommended