.box{ background: #000; box-shadow: 0 0 3px rgba(0,0,0,0.3); overflow: hidden; position: relative; } .box:after{ content: ""; background: rgba(0, 0, 0, 0.7); position: absolute; top: 0; left: -30%; bottom: 0; right: 70%; transform: skew(20deg) translateX(-75%); transition: all 0.35s ease 0s; } .box:hover:after{ transform: skew(20deg) translateX(0); } .box img{ width: 100%; height: auto; transition: all 0.35s ease 0s; } .box:hover img{ opacity: 0.5; } .box .box-content{ padding: 20px; text-transform: uppercase; text-align: right; position: absolute; top: 0; right: 0; z-index: 1; } .box .title{ font-size: 20px; font-weight: 900; color: #fff; margin: 0 0 10px 0; transform: scale(0); transition: all 0.35s ease 0s; } .box:hover .title{ transform: scale(1); } .box .post{ display: block; font-size: 14px; color: #fff; margin-bottom: 5px; opacity: 0; transform: translateX(40px); transition: all 0.35s ease 0s; } .box .icon{ display: inline-block; padding: 0; margin: 0; list-style: none; } .box .icon li{ opacity: 0; transform: translateX(40px); transition: all 0.35s ease 0s; } .box:hover .icon li, .box:hover .post{ opacity: 1; transform: translateX(0); } .box:hover .icon li:first-child{ transition-delay: 0.1s; } .box:hover .icon li:nth-child(2){ transition-delay: 0.2s; } .box .icon li a{ display: block; width: 35px; height: 35px; line-height: 35px; border-radius: 50%; background: #fff; text-align: center; font-size: 18px; color: #605f5f; margin-bottom: 5px; transition: all 0.35s ease; } .box .icon li a:hover{ background: #605f5f; color: #fff; } @media only screen and (max-width:990px){ .box{ margin-bottom: 30px; } }