Producing web pages
* HTML CSS DHTML XHTML A to Z of tags        Accessibility          Design

Blur

Use the blur filter makes a picture looked blurred. It makes the picture looks as if it is moving at high speed. The browser averages the pixels for a specified length and direction. You could use it with text but it doesn’t look much different to a drop-shadow.

You can:

  • Add the original picture to the motion-blurred picture. Set the add property to 1 to do this or zero to leave the picture out
  • The strength of the blur; this is the number of pixels the blur extends. The default is 5 pixels
  • Set the direction of the blur. The default is 270 (left)

Possible values are for the direction of the blur are:

Value…

Direction…

0

Top

45

Top right

90

Right

135

Bottom right

180

Bottom

225

Bottom left

270

Left

315

Top left

For example:

This HTML…

Displays as…

<div id="blur" style="width:100; height:66;
filter:Blur(Add=1, Direction=45,Strength=50)">
<img src="image.jpg" width="100" height="66">
</div>

If you want to see a working example, you can look at the Filter Effects page. This HTML page shows the effects of all the visual filters. For each filter, there is an example. Underneath the example, there is a box for each parameter. You can change the values for the parameter and click on the Change button to see the effect. The Reset button restores the example to the initial state.