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

Articles Tagged
svg filters

18 Articles
{
,

}
Direct link to the article Grainy Gradients
background filter gradients svg filters

Grainy Gradients

Browse through Dribbble or Behance, and you’ll find designers using a simple technique to add texture to an image: noise. Adding noise makes otherwise solid colors or smooth gradients, such as shadows, more realistic. But despite designers’ affinity for texture, …

Avatar of Jimmy Chion
Jimmy Chion on Sep 13, 2021 (Updated on Sep 14, 2021)
Direct link to the article Adding Shadows to SVG Icons With CSS and SVG Filters
drop-shadow filter shadow SVG svg filters

Adding Shadows to SVG Icons With CSS and SVG Filters

Why would we need to apply shadows to SVG?

  1. Shadows are a common design feature that can help elements, like icons, stand out. They could be persistent, or applied in different states (e.g. :hover, :focus, or :active)
…
Avatar of Joel Olawanle
Joel Olawanle on Jun 11, 2021
Direct link to the article Creating Patterns With SVG Filters
SVG svg filters svg pattern

Creating Patterns With SVG Filters

For years, my pain has been not being able to create a somewhat natural-looking pattern in CSS. I mean, sometimes all I need is a wood texture. The only production-friendly solution I knew of was to use an external image, …

Avatar of Bence Szabó
Bence Szabó on Mar 15, 2021
Direct link to the article Three Ways to Blob with CSS and SVG
blobs border-radius filter SVG svg filters

Three Ways to Blob with CSS and SVG

Blobs are the smooth, random, jelly-like shapes that have a whimsical quality and are just plain fun. They can be used as illustration elements and background effects on the web.

So, how are they made? Just crack open an illustration …

Avatar of Akash Mittal
Akash Mittal on Feb 19, 2021
Direct link to the article SVG within CSS
filter SVG svg filters

SVG within CSS

Stefan Judis has a “Today I Learned” (TIL) post explaining how SVGs filters can be inlined in CSS. The idea is that CSS has the filter property which supports some built-in functions, like grayscale(100%) and stuff like that.

But …

Avatar of Chris Coyier
Chris Coyier on Feb 8, 2021
Direct link to the article Creating a Pencil Effect in SVG
SVG svg filters

Creating a Pencil Effect in SVG

Direct Link

Scott Turner, who has an entire blog “Exploring procedural generation and display of fantasy maps”, gets into why vector graphics seems on these surface why it would be bad for the look of a pencil stroke:

Something like this pencil

…
Avatar of Chris Coyier
Shared by Chris Coyier on Mar 28, 2020 (Updated on Mar 29, 2020)
Direct link to the article Making a Realistic Glass Effect with SVG
SVG svg filters

Making a Realistic Glass Effect with SVG

I’m in love with SVG. Sure, the code can look dense and difficult at first, but you’ll see the beauty in the results when you get to know it. The bonus is that those results are in code, so it …

Avatar of David Fitzgibbon
David Fitzgibbon on Aug 1, 2019
Direct link to the article Drawing Realistic Clouds with SVG and CSS
box-shadow svg filters

Drawing Realistic Clouds with SVG and CSS

Greek mythology tells the story of Zeus creating the cloud nymph, Nephele. Like other Greek myths, this tale gets pretty bizarre and X-rated. Here’s a very abridged, polite version.

Nephele, we are told, was created by Zeus in the …

Avatar of Beau Jackson
Beau Jackson on Jun 13, 2019 (Updated on Jun 26, 2019)
Direct link to the article Change Color of SVG on Hover
SVG svg filters svg icons

Change Color of SVG on Hover

There are a lot of different ways to use SVG. Depending on which way, the tactic for recoloring that SVG in different states or conditions — :hover, :active, :focus, class name change, etc. — is different. …

Avatar of Chris Coyier
Chris Coyier on May 13, 2019
Direct link to the article The Many Ways to Change an SVG Fill on Hover (and When to Use Them)
filter SVG svg filters

The Many Ways to Change an SVG Fill on Hover (and When to Use Them)

SVG is a great format for icons. Vector formats look crisp and razor sharp, no matter the size or device — and we get tons of design control when using them inline.

SVG also gives us another powerful feature: the …

Avatar of Cassie Evans
Cassie Evans on Jan 31, 2019 (Updated on Feb 1, 2019)
Direct link to the article Solved with CSS! Colorizing SVG Backgrounds
filter svg filters svg icons

Solved with CSS! Colorizing SVG Backgrounds

This post is the first in a series about the power of CSS.

Article Series:

  1. Colorizing SVG Backgrounds (this post)
  2. Dropdown Menus
  3. Logical Styling Based On the Number of Given Elements

CSS is getting increasingly powerful, and with features like …

Avatar of Una Kravets
Una Kravets on Mar 30, 2018 (Updated on Apr 15, 2020)
  • 1
  • 2
  • 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
  • Agency Coaching
  • Free Credit Offer
CSS-Tricks
  • Email
  • Guest Writing
  • Book
  • Advertising
Follow
  • Mastodon
  • Twitter
  • Instagram
  • YouTube
  • CodePen
  • iTunes
  • RSS
Back to Top