Chapter 20: SVG Blur Effects

SVG Blur Effects are one of the most popular and beginner-friendly uses of SVG <filter>. They make any shape, text, image, icon, button, or group look soft, dreamy, glowing, out-of-focus, or professional-shadowed — exactly like the Gaussian Blur tool in Photoshop, but done with pure code inside SVG.

The main tool for blur in SVG is:

XML

That one primitive creates almost every blur effect people use.

1. What Actually Happens When We “Blur” Something?

A Gaussian blur takes each pixel and averages it with the pixels around it — the bigger the area (the “radius”), the softer / more smeared the result becomes.

In SVG we control this with one number:

  • stdDeviation = the “blur radius” or “strength”
    • 0 = no blur at all
    • 1–3 = very light soft edge
    • 4–8 = nice everyday blur (shadows, glows)
    • 10–20+ = heavy dreamy / out-of-focus effect

You can also give two values → different horizontal vs vertical blur:

XML

2. Your First Blur – Simple Soft Shadow on a Rectangle

Copy-paste this complete file:

HTML

Result: Nice soft drop shadow under the blue rounded rectangle.

3. The Short Modern Way – <feDropShadow> (Recommended in 2026)

Most browsers now support this single-line version:

XML

Apply: filter=”url(#easyShadow)”

→ Much shorter, same effect as the long version above.

4. Popular Blur Effects Everyone Uses (Copy-Paste These!)

A. Glow / Outer Glow (Neon Text Look)

XML

B. Inner Glow (Soft Inner Light)

XML

C. Only Blur – No Shadow (Dreamy / Frosted Look)

XML

→ Makes photo look soft / out-of-focus

D. Directional Blur (Motion / Speed Effect)

XML

→ Looks like fast horizontal movement

5. Quick Reference Table – Blur Strength Guide

stdDeviation value Visual feel Best used for
1–3 Very subtle softening Light edge smoothing
4–8 Classic drop shadow / soft glow Most UI buttons, cards, text
9–15 Strong glow / dreamy blur Neon, glassmorphism, backgrounds
16–30+ Heavy out-of-focus / bokeh Artistic photo effects

6. Teacher’s Important Tips 😄

  • Always apply blur to SourceAlpha first (shape outline) if you want shadow/glow without filling the whole shape
  • Use <feMerge> to layer blurred copies for stronger glow
  • Blur is expensive — don’t put heavy blur on huge areas or many elements on mobile
  • Combine with filter=”url(#blur) brightness(1.2)” for modern glass / frosted glass look
  • Common mistake: Apply filter but forget result names → effect disappears
  • Pro trick: Animate stdDeviation → pulsing glow or focus/unfocus effect

Understood SVG Blur Effects now? This is the foundation — almost every cool SVG filter starts with feGaussianBlur.

Tell me what you want next:

  • Animated blur (breathing glow)?
  • Glassmorphism card with blur background?
  • Blur only edges (vignette effect)?
  • Blur on imported photo + text overlay?
  • Or move to other filters (color matrix, turbulence)?

Just say — we can build any blur style together right now! 🚀

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *