How to create SVG icons and how to implement the SVG icons on our web application? Can you please anyone help to create and implement on web application?
- December 27, 2018
- 121 views
- 1 vote
- 2 Answers
-
How to create SVG icons and how to implement the SVG icons on our web application? Can you please anyone help to create and implement on web application?
2
Answers
I’d suggest adobe-illustrator, too. There you can simply export SVG Files. In HTML you just reference your SVG-File simply in the src attribute of an tag. For example:
To set the size in CSS you just edit the height and width of the image, for example:
When your not good at designing just search for free to use icons or logos maybe you’ll find something you can use.
You can use D3.js, which is a library you can use to add and manipulate SVG objects: https://d3js.org/
A simple very simple example of implementation would look like this:
This adds an SVG object to the container div then adds a black square to the SVG. Although, this library is primarily for data visualization and may not be exactly what you are looking for.