hover effect style : demo 102

willimson

Kristiana

Steve Thomas

HTML

                        

willimson

Kristiana

CSS

                        .box{
                            text-align: center;
                            position: relative;
                            box-shadow: 0 0 5px #a3a3a3;
                        }
                        .box img{
                            width: 100%;
                            height: auto;
                        }
                        .box .box-content{
                            width: 100%;
                            height: 100%;
                            background: transparent;
                            padding-top: 25%;
                            position: absolute;
                            top: 0;
                            left: 0;
                            transition: all 0.3s ease 0s;
                        }
                        .box:hover .box-content{
                            background: rgba(0,0,0,0.5);
                        }
                        .box .title{
                            font-size: 24px;
                            color: #fff;
                            text-transform: capitalize;
                            transform: scale(0);
                            transition: all 0.2s ease 0s;
                        }
                        .box:hover .title{
                            transform: scale(1);
                        }
                        .box .icon{
                            list-style: none;
                            padding: 0;
                            margin: 0;
                            opacity: 0;
                            transition: all 0.2s ease 0s;
                        }
                        .box:hover .icon{
                            opacity: 1;
                        }
                        .box .icon li{
                            display: inline-block;
                        }
                        .box .icon li:first-child a,
                        .box .icon li:last-child a{
                            display: block;
                            width: 50px;
                            height: 50px;
                            line-height: 50px;
                            font-size: 24px;
                            color: #fff;
                            border: 1px solid #fff;
                            position: relative;
                        }
                        .box .icon li a{
                            top: -150px;
                        }
                        .box:hover .icon li a{
                            top: 0;
                        }
                        .box:hover .icon li a:hover{
                            background: #a46789;
                            border-color: #a46789;
                        }
                        .box .icon li:first-child a{
                            transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0s;
                        }
                        .box .icon li:last-child a{
                            transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.1s;
                        }
                        @media only screen and (max-width:990px){
                            .box{ margin-bottom: 30px; }
                        }
                        @media only screen and (max-width:360px){
                            .box .box-content{ padding-top: 20%; }
                        }
                    
License Terms