Too Many SVGs Clogging Up Your Markup? Try `use

By CSS-Tricks - 2021-03-10

Description

Recently, I had to make a web page displaying a bunch of SVG graphs for an analytics dashboard. I used a bunch of , and

Summary

  • Too Many SVGs Clogging Up Your Markup?
  • But instead of props and such to populate the content, we reference which part of the SVG file we want to display.
  • For those of you familiar with graphics programming APIs, such as WebGL, a good analogy would be Geometry Instancing.
  • Might not be an option if you want the bars to be individually interactive though, like with a tooltip.

 

Topics

  1. Database (0.39)
  2. Machine_Learning (0.09)
  3. Frontend (0.05)

Similar Articles

By CSS { In Real Life } | A Utility Class for Covering Elements - 2020-12-11

Boop!

By joshwcomeau - 2020-12-03

An in-depth tutorial that teaches how to create one of the most adorable interactions I've ever created. We'll learn how to use React components and hooks to abstract behaviours, and see how to design ...

An Interactive Guide to CSS Transitions

By joshwcomeau - 2021-03-06

This comprehensive guide shows how to use CSS transitions! A back-to-basics look at the fundamental building blocks we need to create microinteractions and other animations.

Using Chrome DevTools to debug CSS Grid

By LogRocket Blog - 2021-01-04

Using Chrome DevTools and CSS Grid, learn how to discover grids in a page, inspect page layout, and debug common layout issues.