I have created a html page with a fixed sidebar which also have a background image. I'm trying to bring a parallax effect into the background image but I simply can't. I tried changing the background-attachment into fixed and scroll, but as the div is fixed parallax effect just won't work for me. Please find me a solution. Here's my css code.
.header{
background-image: url("../images/8.jpg");
background-attachment:scroll;
height: 100%;
position: fixed;
background-size: cover;
width: 40%;
background-repeat: no-repeat;
margin: 0;
padding-left: 20px;
font-family: 'Asap Condensed';
font-size: 50px;
padding-top: 100px;
box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2), 0 6px 20px 0 rgba(0,0,0,0.19);
}