[Solved] Changing background opacity with jQuery [duplicate]


you can use a trick like this

set the background to the :after

.one:after {
  background: url('http://carwallstar.com/wp-content/uploads/2014/11/ford-car-images2015-ford-mustang--2015-ford-mustang-29-----froggpondcom-w8lqchv6.jpg') 100% 100% no-repeat;
  background-size: cover;
  content: "";
  opacity: 0.5;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  position: absolute;
  z-index: -1;  
}

source:
https://css-tricks.com/snippets/css/transparent-background-images/

1

solved Changing background opacity with jQuery [duplicate]