D
D
DestroyerZzz2015-10-01 08:47:27
css
DestroyerZzz, 2015-10-01 08:47:27

Picture inside. How to implement something like this?

9fdbe27c633c46baa0a032e6f083ff38.jpg
Here. I want to have 3 layers. When hovering over a common div, the color disappears and only the image remains.
I tried this, but the color is BEHIND the picture, but it needs to be BEFORE. The logo stands alone in the HTML.

#w2:hover{
  background-color: rgba(255,140,251,0.5);
}

#w2{
  background-color: rgba(255,140,251,1);
  background-image: url('img/2 blur.png');
  background-size: cover;
  background-position: center;
}

Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
Gregory, 2015-10-01
@DestroyerZzz

opacity:0; - transparent.
opacity:0.5; - translucent
opacity:1; - NOT transparent

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question