Design glossaryFeathering is softening the edge of an image or selection so it fades gradually into the background instead of ending in a hard line.
Feathering blurs the boundary of a selection or mask so that an image, cutout, or effect fades out over a set distance rather than stopping at a crisp edge. The distance is called the feather radius, usually set in pixels: a radius of 1 or 2 pixels just takes the harshness off a cutout, while a radius of 50 or more produces a long, soft fade.
It is a photo editing technique first, but the same idea shows up in web design whenever an image dissolves into the page background or a hero photo fades behind text.
Where feathering is used
- Cutouts and composites: a slight feather helps a subject cut from one photo sit naturally in another, instead of looking pasted on.
- Vignettes: a heavily feathered oval selection, inverted and darkened, draws the eye to the center of a photo.
- Local adjustments: brightening a face or darkening a sky through a feathered selection avoids a visible line where the adjustment stops.
- Fades into the page: a product photo or hero image that blends into a solid background color.
How to feather in common tools
- Photoshop: make a selection, then choose Select > Modify > Feather and enter a radius. For a non-destructive result, add a layer mask instead and adjust the Feather slider in the mask's Properties panel, which can be changed at any time.
- GIMP: Select > Feather works the same way.
- Illustrator: Effect > Stylize > Feather softens the edges of vector objects.
The feather radius is in pixels, so the same setting looks very different on a small image and a large one. A 10-pixel feather is strong on a 600-pixel-wide web image and barely visible on a 6,000-pixel photo. Feather at the size the image will be used, or judge the effect by eye at that size.
Feathering on the web with CSS
A site does not always need a pre-feathered image file. CSS can fade the edges of an ordinary image:
mask-imagewith a gradient, for examplemask-image: linear-gradient(to bottom, black 70%, transparent), fades the bottom of an image into whatever sits behind it. Aradial-gradientmask gives an oval vignette.- A gradient overlay in the background color, placed over the image, gives a similar fade and also helps text on top stay readable.
filter: blur()blurs the whole element, not just its edges, so it is not a substitute for feathering.
Doing the fade in CSS keeps the original image reusable and lets the effect adapt to dark and light backgrounds. If a feathered image is exported instead, save it in a format that supports transparency, such as PNG or WebP; JPEG has no transparency, so the fade would be baked onto one background color.
Common mistakes
- Too large a radius on a cutout, which leaves a ghostly halo around the subject.
- Feathering a selection permanently, then needing a different edge later. Masks keep the option open.
- Exporting a feathered image as JPEG and placing it on a different background color, which shows a visible box.