Created
February 14, 2017 07:47
-
-
Save Archie22is/f6aca951bf2f170413e723825667ecef to your computer and use it in GitHub Desktop.
CSS Background Image Blur without blurry edges
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
.blurry-bg { | |
background-image:url('../images/your-image.png'); | |
background-position: 30% 30%; | |
background-repeat: no-repeat !important; | |
background-size: cover !important; | |
position: relative; | |
height: 600px; | |
filter: blur(50px) !important; | |
-webkit-filter: blur(50px) !important; | |
-moz-filter: blur(50px) !important; | |
-o-filter: blur(50px) !important; | |
-ms-filter: blur(50px) !important; | |
filter:progid:DXImageTransform.Microsoft.Blur(PixelRadius='5') !important; /* IE lte 9 */ | |
/* this does the trick */ | |
transform: scale(1.2); | |
-ms-transform: scale(1.2); /* IE 9 */ | |
-webkit-transform: scale(1.2); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment