hover effect style : demo 128

Williamson

Kristiana

Steve Thomas

HTML

                        

Williamson

Kristiana

CSS

                        .box{
                            text-align: center;
                            background: #000;
                            overflow: hidden;
                            position: relative;
                        }
                        .box img{
                            width: 100%;
                            height: 100%;
                            transition: all 0.3s ease-out 0s;
                        }
                        .box:hover img{
                            opacity: 0.4;
                            transform: scale(1.1);
                        }
                        .box .box-content{
                            width: 100%;
                            height: 100%;
                            position: absolute;
                            top: 0;
                            left: 0;
                        }
                        .box .title{
                            font-size: 22px;
                            font-weight: 700;
                            color: #f95b34;
                            letter-spacing: 1px;
                            text-transform: uppercase;
                            opacity: 0;
                            margin: 0 0 10px;
                            position: absolute;
                            top: 50%;
                            left: 0;
                            right: 0;
                            transform: translateY(-50%);
                        }
                        .box:hover .title{
                            opacity: 1;
                        }
                        .box-content .overlay{
                            width: 78px;
                            height: 78px;
                            position: absolute;
                            top: 50%;
                            left: 50%;
                            transform-origin: 0 0;
                            transform: rotate(45deg) translate(-50%, -50%);
                        }
                        .box-content .overlay:before,
                        .box-content .overlay:after,
                        .box-content .overlay div:before,
                        .box-content .overlay div:after{
                            content: "";
                            display: block;
                            position: absolute;
                            background: #f95b34;
                            transition: all 0.4s ease-in-out;
                        }
                        .box-content .overlay:before,
                        .box-content .overlay:after{
                            width: 0;
                            height: 2px;
                        }
                        .box-content .overlay div:before,
                        .box-content .overlay div:after{
                            width: 2px;
                            height: 0;
                        }
                        .box-content .overlay:before,
                        .box-content .overlay div:before{
                            top: 0;
                            left: 0;
                        }
                        .box-content .overlay:after,
                        .box-content .overlay div:after{
                            bottom: 0;
                            right: 0;
                        }
                        .box:hover .overlay:before,
                        .box:hover .overlay:after{
                            width: 65%;
                        }
                        .box:hover .overlay div:before,
                        .box:hover .overlay div:after{
                            height: 65%;
                        }
                        @media only screen and (max-width:990px){
                            .box{ margin-bottom: 30px; }
                        }
                    
License Terms