.box{ background: #000; font-family: 'Sora', sans-serif; box-shadow: 0 0 5px rgba(0, 0, 0, 0.15); overflow: hidden; position: relative; transition: all 0.4s ease-in; } .box:hover{ box-shadow: 0 0 20px -5px rgba(0, 0, 0, 0.4); } .box:before{ content: ""; background: linear-gradient(-225deg, #9EFBD3 50%, #45D4FB 100%); width: 100%; height: 100%; opacity: 0; transform: rotate3d(0,0,1,45deg); transform-origin: 0 100%; position: absolute; top: 0; left: 0; z-index: 1; transition: all 0.4s ease-out 0s; clip-path: polygon(100% 0, 0% 100%, 100% 100%); } .box:hover:before{ opacity: 0.8; transform: rotate3d(0,0,1,15deg); } .box img{ width: 100%; height: auto; transform: scale(1.1) translateY(4%); transition: all 0.4s ease-in; } .box:hover img{ opacity: 0.4; transform: scale(1.1) translateY(-4%); } .box .box-content{ color: #fff; width: 100%; text-align: center; opacity: 0; position: absolute; top: 0; left: 0; z-index: 2; transition: all 0.4s ease-out; } .box:hover .box-content{ opacity: 1; top: 30px; } .box .title{ font-size: 22px; font-weight: 900; text-transform: uppercase; margin: 0 0 2px; } .box .post{ color: #9EFBD3; font-size: 15px; font-weight: 500; font-style: italic; text-transform: capitalize; display: block; } .box .icon{ padding: 0; margin: 0; list-style: none; opacity: 0; position: absolute; bottom: -50px; right: 10px; z-index: 2; transition: all 0.4s ease-in; } .box:hover .icon{ opacity: 1; bottom: 10px; } .box .icon li{ display: inline-block; margin: 0 4px; } .box .icon li a{ color: #222; background: #fff; font-size: 14px; text-align: center; line-height: 32px; height: 30px; width: 30px; display: block; transition: all 0.3s ease 0s; } .box .icon li a:hover{ border-radius: 15px 0; box-shadow: 0 0 10px #999 inset; } @media only screen and (max-width:990px){ .box { margin: 0 0 30px; } }