Skip to main content
CSS-Tricks
  • Articles
  • Videos
  • Almanac
  • Newsletter
  • Guides
  • DigitalOcean
  • DO Community
Search

Articles Tagged
SVG

202 Articles
{
,

}
Direct link to the article Optimizing SVG Patterns to Their Smallest Size
SVG svg pattern SVG use

Optimizing SVG Patterns to Their Smallest Size

I recently created a brick wall pattern as part of my #PetitePatterns series, a challenge where I create organic-looking patterns or textures in SVG within 560 bytes (or approximately the size of two tweets). To fit this constraint, I have …

Avatar of Bence Szabó
Bence Szabó on Mar 18, 2022
Direct link to the article SVGcode for “Live Tracing” Raster Images
generator illustrator SVG

SVGcode for “Live Tracing” Raster Images

Say you have a bitmap graphic — like a JPG, PNG, or GIF — and you wish it was vector, like SVG. What do you do? You could trace it yourself in some kind of design software. Or tools within …

Avatar of Chris Coyier
Chris Coyier on Feb 9, 2022
Direct link to the article Using SVG in WordPress (2 Helpful Plugin Recommendations)
security SVG WordPress

Using SVG in WordPress (2 Helpful Plugin Recommendations)

SVG is a great image format, so it's nice to able to use it in WordPress. If you're looking to be using SVG in WordPress. , we've got you covered here with all the best options.
Avatar of Chris Coyier
Chris Coyier on Jan 21, 2022
Direct link to the article Flip, Invert, and Reverse
border-image SVG

Flip, Invert, and Reverse

Direct Link

The SVG <path> syntax is a beast. There are all sorts of commands that make up a mini-language all of its own — so powerful that it’s capable of drawing anything. Don’t be too scared of it, though, because some …

Avatar of Chris Coyier
Shared by Chris Coyier on Dec 8, 2021
Direct link to the article Fractional SVG stars with CSS
mix-blend-mode SVG

Fractional SVG stars with CSS

Direct Link

Some ⭐️⭐️⭐️⭐️⭐️ star rating systems aren’t always exactly even stars. Say you want to support rating something 2.25 stars. To do that you could “fill” the shape of the stars partially. I like this idea by Samuel Kraft. The tricky …

Avatar of Chris Coyier
Shared by Chris Coyier on Dec 2, 2021
Direct link to the article Which SVG technique performs best for way too many icons?
SVG svg icons

Which SVG technique performs best for way too many icons?

Direct Link

Tyler Sticka digs in here in the best possible way: by making a test page and literally measuring performance. Maybe 1,000 icons is a little bit of an edge case, but hey, 250 rows of data with four icons in …

Avatar of Chris Coyier
Shared by Chris Coyier on Nov 23, 2021
Direct link to the article Favicons: How to Make Sure Browsers Only Download the SVG Version
favicon SVG

Favicons: How to Make Sure Browsers Only Download the SVG Version

Šime Vidas DM’d me the other day about this thread from subzey on Twitter. My HTML for favicons was like this:

<!-- Warning! Typo! --<link rel="icon" href="/favicon.ico" size="any"<link rel="icon" href="/favicon.svg" type="image/svg+xml"

The attribute size is a typo there, …

Avatar of Chris Coyier
Chris Coyier on Nov 5, 2021
Direct link to the article How I Made a Generator for SVG Loaders With Sass and SMIL Options
generator loader Sass SMIL SVG

How I Made a Generator for SVG Loaders With Sass and SMIL Options

While learning Vue.js, I started building free web tools that involved the exploration of SVG, with the goal of learning something about both! Let’s take a look at one of those tools: a generator that makes SVG loaders and …

Avatar of Mariana Beldi
Mariana Beldi on Aug 26, 2021
Direct link to the article Cutouts
clipping vs masking SVG

Cutouts

Direct Link

Ahmad Shadeed dug into shape “cutouts” the other day. Imagine a shape with another smaller shape carved out of it. In his typical comprehensive way, Ahmad laid out the situation well—looking at tricky situations that complicate things. …

Avatar of Chris Coyier
Shared by Chris Coyier on Aug 16, 2021
Direct link to the article SVG Gobbler
SVG

SVG Gobbler

Great little project from Ross Moody:

SVG Gobbler is a browser extension that finds the vector content on the page you’re viewing and gives you the option to download, optimize, copy, view the code, or export it as an image.

…
Avatar of Chris Coyier
Chris Coyier on Aug 6, 2021
Direct link to the article My Struggle to Use and Animate a Conic Gradient in SVG
conic gradients loader mix-blend-mode SVG

My Struggle to Use and Animate a Conic Gradient in SVG

The wonderful company I work for, Payoneer, has a new logo, and my job was to recreate it and animate it for a loader component in our app. I’ll explain exactly how I did it, share the problems I …

Avatar of Amit Sheen
Amit Sheen on Jul 8, 2021
  • 1
  • 2
  • 3
  • ...
  • 19
  • Older

CSS-Tricks is powered by DigitalOcean.

Keep up to date on web dev

with our hand-crafted newsletter

DigitalOcean
  • DigitalOcean
  • DigitalOcean Community
  • About DigitalOcean
  • Legal
  • Free Credit Offer
Minisites
  • The Power of Serverless
  • Upcoming Conferences
  • Coding Fonts
  • The Greatest CSS Tricks
Contact
  • Email
  • Guest Writing
Follow
  • Twitter
  • Instagram
  • YouTube
  • CodePen
  • iTunes
  • RSS
Back to Top