Created
September 30, 2021 04:29
-
-
Save farithadnan/6fbb8cb60b03a059f0fcab7e91b74626 to your computer and use it in GitHub Desktop.
Blur effect on a div element
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
div.blur { | |
-webkit-filter: blur(5px); | |
-moz-filter: blur(5px); | |
-o-filter: blur(5px); | |
-ms-filter: blur(5px); | |
filter: blur(5px); | |
width: 100px; | |
height: 100px; | |
background-color: #ccc; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="blur">blur me please</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Source: (https://stackoverflow.com/questions/11977103/blur-effect-on-a-div-element)
JsFiddle Demo: (http://jsfiddle.net/ayhj9vb0/)