CSS Property Value How to - webkit-filter: blur(15px);








Question

We would like to know how to webkit-filter: blur(15px);.

Answer


<!DOCTYPE html>
<html>
<head>
<style type='text/css'>
body {<!--  w ww . j  a  va  2s .  c o m-->
  padding: 50px;
  text-align: center;
}

img {
  margin: 50px 0 0 0;
}

h1, img {
  font-family: sans-serif;
  font-weight: bold;
  -webkit-filter: blur(15px);
  -webkit-transition: -webkit-filter .50s;
}

h1:hover, img:hover {
  -webkit-filter: none;
  -webkit-transition: -webkit-filter .50s;
}
</style>
</head>
<body>
  <h1>You're not drunk.</h1>
</body>
</html>

The code above is rendered as follows: