hover effect style : demo 153

Williamson

Web Developer

Kristiana

Web Designer

Steve Thomas

Web Developer

HTML

                        

Williamson

Web Developer

Kristiana

Web Designer

CSS

                        .box{
                            text-align: center;
                            overflow: hidden;
                            box-shadow: 0 0 3px rgba(0,0,0,0.3);
                            position: relative;
                        }
                        .box img{
                            width: 100%;
                            height: auto;
                        }
                        .box .box-content{
                            width: 100%;
                            height: 100%;
                            position: absolute;
                            top: 0;
                            left: 0;
                        }
                        .box .box-content:before,
                        .box .box-content:after{
                            content: "";
                            width: 100%;
                            height: 50%;
                            background: #1e1818;
                            position: absolute;
                            top: -55%;
                            left: 0;
                            transition: all 0.3s ease 0s;
                        }
                        .box .box-content:after{
                            top: auto;
                            bottom: -55%;
                        }
                        .box:hover .box-content:before{ top: 0; }
                        .box:hover .box-content:after{ bottom: 0; }
                        .box .title,
                        .box .post{
                            font-size: 30px;
                            font-weight: bold;
                            color: #fff;
                            margin: 0;
                            opacity: 0;
                            position: relative;
                            top: 10%;
                            z-index: 1;
                            transition: all 0.35s ease 0s;
                        }
                        .box .post{
                            display: block;
                            font-size: 16px;
                            top: 63%;
                        }
                        .box:hover .title,
                        .box:hover .post{
                            top: 30%;
                            opacity: 1;
                            transition-delay: 0.35s;
                        }
                        .box:hover .post{ top: 37%; }
                        .box .icon{
                            padding: 0;
                            margin: 0;
                            list-style: none;
                            z-index: 1;
                            position: relative;
                            top: 33%;
                            transform: scale(0);
                            transition: all 0.35s ease 0s;
                        }
                        .box:hover .icon{
                            transform: scale(1);
                            transition-delay: 0.35s;
                        }
                        .box .icon li{ display: inline-block; }
                        .box .icon li a{
                            display: block;
                            width: 40px;
                            height: 40px;
                            line-height: 40px;
                            border-radius: 50%;
                            background: #fff;
                            margin-right: 10px;
                            font-size: 18px;
                            color: #1e1818;
                            transition: all 0.3s ease 0s;
                        }
                        .box .icon li a:hover{
                            background: #1e1818;
                            color: #fff;
                        }
                        @media only screen and (max-width:990px){
                            .box{ margin-bottom: 30px; }
                        }
                    
License Terms