Styling SVG Markers
Using an array of color keys, this demo:
- appends CSS for each color to the stylesheet
- clones svg markers for each color into the defs
- creates a path for each color, with markers
- cycles the CSS color class to the next path
Thanks to:
O'Reilly SVG essentials for the quadratic beziƩr curve.
Jacob Jenkov for SVG markers.
David Walsh for adding styles.
complexdan for SVG circles to paths.
Paul Irish for mothereffin' hsl.