.box{ background: #444; overflow: hidden; box-shadow: 0 0 3px rgba(0,0,0,0.3); position: relative; } .box:before, .box:after{ content: ""; width: 50px; height: 50px; border-radius: 50%; background: #10a5b8; position: absolute; top: -80px; left: 15px; opacity: 0; z-index: 1; transition: all 0.35s ease; } .box:after{ top: auto; left: auto; bottom: -80px; right: 15px; } .box:hover:before, .box:hover:after{ opacity: 0.75; transform: scale(8); transition-delay: 0.15s; } .box img{ width: 100%; height: auto; transition: all 0.35s ease-out 0s; } .box:hover img{ opacity: 0.4; } .box .icon{ display: inline-block; list-style: none; padding: 0; margin: 0; position: absolute; bottom: 15px; right: 15px; z-index: 2; transform: scale(0); transition: all 0.35s ease-out; } .box:hover .icon{ transform: scale(1); transition-delay: 0.15s; } .box .icon li{ display: inline-block; } .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: #444; margin-right: 10px; overflow: hidden; position: relative; transition: all 0.5s ease 0s; } .box .icon li a:hover{ background: #444; color: #fff; } .box .box-content{ padding: 20px 15px; position: absolute; top: 0; left: 0; z-index: 1; } .box .title{ font-size: 20px; font-weight: 800; color: #fff; text-transform: uppercase; margin: 0 0 5px; opacity: 0; transform: translate(-20px, -20px); transition: all 0.35s ease-out; } .box:hover .title{ opacity: 1; transform: translate(0, 0); transition-delay: 0.15s; } .box .post{ display: inline-block; font-size: 16px; color: #fff; opacity: 0; font-style: italic; transform: translate(-20px, -20px); transition: all 0.35s ease-out; } .box:hover .post{ opacity: 1; transform: translate(0, 0); transition-delay: 0.15s; } @media only screen and (max-width:990px){ .box{ margin-bottom: 30px; } }