how to blur background image css code example

Example 1: how to blur background color in css

background: rgba(255,255,255,0.5);
backdrop-filter: blur(5px);

Example 2: how to do a background blur in css

/* Answer to "blur behind element css" */

/*
	This blurs everything behind the element it's applied to
*/

backdrop-filter: blur(10px);

Example 3: image blur css

filter: blur(8px);
  -webkit-filter: blur(8px);

Example 4: add blur background css

backdrop-filter: blur(5px);

Example 5: css blur background

/* Keyword value */
backdrop-filter: none;

/* URL to SVG filter */
backdrop-filter: url(commonfilters.svg#filter);

/* <filter-function> values */
backdrop-filter: blur(2px);
backdrop-filter: brightness(60%);
backdrop-filter: contrast(40%);
backdrop-filter: drop-shadow(4px 4px 10px blue);
backdrop-filter: grayscale(30%);
backdrop-filter: hue-rotate(120deg);
backdrop-filter: invert(70%);
backdrop-filter: opacity(20%);
backdrop-filter: sepia(90%);
backdrop-filter: saturate(80%);

/* Multiple filters */
backdrop-filter: url(filters.svg#filter) blur(4px) saturate(150%);

/* Global values */
backdrop-filter: inherit;
backdrop-filter: initial;
backdrop-filter: unset;

Example 6: css blur background image only

// best workaround is two images layered... (one on left is on top)
background-image: url(opaque_blurred.png), url(regular_bakground_img.jpg);
// BAM! that right there is worth at least a buck donation ;-)

Tags:

Css Example