CSS Image Effects

For starters:

div > img {
  position: absolute;
}
div > p {
  position: relative;
  top: 50%;
  visibility: hidden;
  transition:all 0.3s ease-in;
  opacity:0;
}
div > img:hover {
  filter: blur(2px);
}
div > img:hover + p {
  visibility: visible;
  opacity:1;
}
<div>
  <img src="https://encrypted-tbn3.gstatic.com/images?q=tbn:ANd9GcRVfOu73XA2Ebqxqa5pKzp_90m6aSIx1EcNu9s3axKCn_YfqDGcnA" />
  <p>Some text</p>
</div>

P.S: Really, you need to surf this thing called GOOGLE, its awesome!!! <3

Leave a Comment