Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSS

how to blur background image in css

/* Setting background image and filter to blur */
body{
      background-image: url("software_code_3.jpg");
      background-position: center;
      background-repeat: no-repeat;
      background-size: cover;
      background-attachment: fixed;
      color: whitesmoke;
      backdrop-filter: blur(8px);
/*       -webkit-filter: blur(8px); */
    }
/* creating a kind of "glass-polymorphism" effect with a light-dark background*/
.container {
      border: 1px;
      border-radius: 5px;
      background-color: rgb(0,0,0);
      background-color: rgba(0,0,0, 0.4);
      padding: 20px;
    }
 
PREVIOUS NEXT
Tagged: #blur #background #image #css
ADD COMMENT
Topic
Name
3+8 =