hover effect style : demo 139

Williamson

Kristiana

Steve Thomas

HTML

                        

Williamson

Kristiana

CSS

                        .box{
                            text-align: center;
                            overflow: hidden;
                            position: relative;
                        }
                        .box:before,
                        .box:after{
                            content: "";
                            width: 100%;
                            height: 100%;
                            background: rgba(0,0,0, 0.6);
                            position: absolute;
                            top: 0;
                            left: 0;
                            bottom: 0;
                            z-index: 1;
                            transform: scaleX(0);
                            transition: all 0.6s ease 0s;
                        }
                        .box:after{ transform: scaleY(0); }
                        .box:hover:before{ transform: scaleX(1); }
                        .box:hover:after{ transform: scaleY(1); }
                        .box img{
                            width: 100%;
                            height: auto;
                            transition: all 0.5s ease 0s;
                        }
                        .box:hover img{
                            transform: scale(1.3);
                        }
                        .box .box-content{
                            width: 100%;
                            position: absolute;
                            top: 42%;
                            left: 0;
                            z-index: 2;
                        }
                        .box .title{
                            font-size: 22px;
                            font-weight: 600;
                            color: #fff;
                            margin: 0 0 10px 0;
                            opacity: 0;
                            transition: all 0.3s ease 0s;
                        }
                        .box:hover .title{
                            opacity: 1;
                        }
                        .box .icon{
                            padding: 0;
                            margin: 0;
                            list-style: none;
                            transform: scaleX(0);
                            transition: all 0.6s ease 0s;
                        }
                        .box:hover .icon{
                            transform: scaleX(1);
                        }
                        .box .icon li{ display: inline-block; }
                        .box .icon li a{
                            width: 40px;
                            height: 40px;
                            line-height: 40px;
                            border-radius: 50%;
                            font-size: 16px;
                            color: #fff;
                            border: 1px solid #fff;
                            margin-right: 5px;
                            transition: all 0.3s ease 0s;
                        }
                        .box .icon li a:hover{
                            background: #fff;
                            color: #444;
                        }
                        @media only screen and (max-width:990px){
                            .box{ margin-bottom: 20px; }
                        }
                    
License Terms