blur effect html code example

Example 1: image blur css

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

Example 2: blur css

.mydiv { filter: grayscale(50%) }

/* Graut alle Bilder um 50% aus und macht sie um 10px unscharf */
img {
  filter: grayscale(0.5) blur(10px);
}

Example 3: 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