Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .image-box {
- position: relative;
- width: 100%;
- }
- .results {
- display: flex;
- flex-wrap: wrap;
- margin: 0px -15px;
- }
- .results .result {
- width: 33.333%;
- min-width: 250px;
- padding: 15px;
- display: flex;
- flex-direction: column;
- cursor: pointer;
- }
- .results .result img {
- display: block;
- width: 100%;
- }
- .results .result img {
- display: block;
- width: 100%;
- }
- .middle {
- transition: .5s ease;
- opacity: 0;
- position: absolute;
- top: 50%;
- left: 50%;
- transform: translate(-50%, -50%);
- -ms-transform: translate(-50%, -50%);
- text-align: center;
- border: solid white 2px;
- }
- .image-box:hover img {
- opacity: 0.3;
- cursor: pointer;
- }
- .image-box:hover .middle {
- opacity: 1;
- cursor: pointer;
- }
- .hover-text {
- background-color: #8E0E00;
- color: white;
- font-size: 16px;
- padding: 16px 32px;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement