Esta página aún no está traducida al español, así que la mostramos en inglés.

Fade Image Edges with CSS — Soft Edge Generator

Give photos and hero images soft, faded edges with a single CSS rule — no image editing. Fade all four edges, one side or top and bottom, adjust the fade size and copy the mask-image CSS.

Actualizado el

CSS

Tus datos nunca salen de tu ordenador. Todo se procesa localmente en tu navegador.

Cómo usar: Fade Image Edges with CSS

  1. The preview starts with Fade all edges; drag Fade size to make the soft border wider or narrower.
  2. Switch the effect to fade only one side (for example the bottom of a hero image) or top and bottom.
  3. Try it on your own photo with Use my image.
  4. Copy the CSS onto the image or its container.

Why fade edges with a mask?

A gradient mask fades the image itself into whatever is behind it — a page background, a gradient or another image — instead of painting a colored overlay on top. It works on any background, in light and dark themes, and changes nothing in your image files.

img.soft {
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 15%, #000 85%, transparent),
                      linear-gradient(to right, transparent, #000 15%, #000 85%, transparent);
  -webkit-mask-composite: source-in;
          mask-composite: intersect;
}

Two gradients — one vertical, one horizontal — are combined with mask-composite: intersect so all four sides fade. For round, vignette-style fades use the CSS Vignette Generator; for shapes, the Image Shape Mask.

También se busca como: fade image edges css, css fade edges, soft edges css image, fade out image css, css image fade, blur edges image css, feather image css, image fade to transparent css.

Herramientas que combinan con: Fade Image Edges with CSS

  • CSS Mask Generator — Make images and sections fade out instead of ending hard: fade one edge, top and bottom, all four edges, a radial vignette or a spotlight, cut the element into stripes — or mask it with a shape (star, heart, hexagon, arrow…) with soft, feathered edges that clip-path can’t do.
  • CSS Gradient Generator — Design a gradient visually — drag color stops, change the angle or type, start from a preset — and copy production-ready CSS with a solid fallback color.
  • CSS Clip-path Generator — Cut images and elements into any shape: pick one of 15 starting shapes — triangle, hexagon, star, arrow, chevron, speech bubble, circle, ellipse, rounded inset… — then drag the points over a sample or your own image.
  • CSS Filter Generator — Adjust blur, brightness, contrast, saturation, hue, grayscale, sepia, invert and drop shadow on a sample or your own image and copy the filter CSS.

Preguntas frecuentes

How do I fade the edges of an image with CSS?
Use a gradient mask: mask-image: linear-gradient(...) from transparent to #000 and back. For all four edges, combine a vertical and a horizontal gradient with mask-composite: intersect, as this generator does.
How do I fade only the bottom of an image?
Choose “Fade one edge” with direction Bottom: mask-image: linear-gradient(to bottom, #000 60%, transparent).
Does it work on background images?
Yes — put the mask on the element that has the background-image; the whole element, including the background, fades.
¿Puedo instalar Fade Image Edges with CSS como aplicación web y utilizarla sin conexión?
Sí. Fade Image Edges with CSS es una aplicación web instalable (PWA): se instala desde el navegador, no se descarga desde una tienda de aplicaciones. Haz clic en «Instalar aplicación» en la parte superior de esta página en Chrome o Edge (Windows, macOS, Linux, ChromeOS) o, en Android, utiliza «Compartir» → «Añadir a la pantalla de inicio» en iPhone y iPad, o «Archivo» → «Añadir al Dock» en Safari 17+ en un Mac. A continuación, se abrirá en su propia ventana con su propio icono y, como se ejecuta íntegramente en tu navegador, seguirá funcionando sin conexión. Firefox en el ordenador de sobremesa no permite instalar aplicaciones web. Cómo funciona la instalación.

Herramientas relacionadas