May 2019
Beginner to intermediate
650 pages
14h 50m
English
An SVG can have a <defs> header containing shapes, groups and other elements that will not be displayed. Filters, clipping masks, gradients and reusable shapes are usually declared in the <defs> header. You will need to assign an id to each element you wish to reuse later.
The element can be displayed later declaring the <use> element outside the <defs> block. This element references an existing element by id using standard xlink notation.
In the following example, two rectangles are created at 0.0. Since they are in the <defs> header, they will not be displayed. Each is previously configured with colors, dimensions and position. Outside the <defs> header, each element is displayed twice when referenced by each ...
Read now
Unlock full access