Advertisement
Guest User

Untitled

a guest
Jan 27th, 2020
141
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 0.86 KB | None | 0 0
  1. .image-box {
  2.     position: relative;
  3.     width: 100%;
  4.   }
  5.  
  6. .results {
  7.     display: flex;
  8.     flex-wrap: wrap;
  9.     margin: 0px -15px;
  10. }
  11.  
  12. .results .result {
  13.     width: 33.333%;
  14.     min-width: 250px;
  15.     padding: 15px;
  16.     display: flex;
  17.     flex-direction: column;
  18.     cursor: pointer;
  19. }
  20.  
  21. .results .result img {
  22.     display: block;
  23.     width: 100%;
  24. }
  25.  
  26. .results .result img {
  27.     display: block;
  28.     width: 100%;
  29. }
  30.  
  31.   .middle {
  32.     transition: .5s ease;
  33.     opacity: 0;
  34.     position: absolute;
  35.     top: 50%;
  36.     left: 50%;
  37.     transform: translate(-50%, -50%);
  38.     -ms-transform: translate(-50%, -50%);
  39.     text-align: center;
  40.     border: solid white 2px;
  41.   }
  42.  
  43.   .image-box:hover img {
  44.     opacity: 0.3;
  45.     cursor: pointer;
  46.   }
  47.  
  48.   .image-box:hover .middle {
  49.     opacity: 1;
  50.     cursor: pointer;
  51.   }
  52.  
  53.   .hover-text {
  54.     background-color: #8E0E00;
  55.     color: white;
  56.     font-size: 16px;
  57.     padding: 16px 32px;
  58.   }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement