hover effect style : demo 66

Williamson

Web Designer

Kristiana

Web Developer

Steve Thomas

Graphic Designer

HTML

                        

Williamson

Web Designer

Kristiana

Web Developer

CSS

                        .box{
                            position: relative;
                            overflow: hidden;
                            box-shadow: 0 0 5px #808080;
                        }
                        .box:before,
                        .box:after{
                            content: "";
                            width: 0;
                            height: 0;
                            position: absolute;
                            opacity: 0;
                            z-index: 1;
                            transition: all 0.5s ease 0s;
                        }
                        .box:before{
                            bottom: 5%;
                            left: 5%;
                            border-bottom: 2px solid #fff;
                            border-left: 2px solid #fff;
                        }
                        .box:after{
                            top: 5%;
                            right: 5%;
                            border-top: 2px solid #fff;
                            border-right: 2px solid #fff;
                        }
                        .box:hover:before,
                        .box:hover:after{
                            opacity: 1;
                            width: 90%;
                            height: 90%;
                        }
                        .box img{
                            width: 100%;
                            height: auto;
                            transform: scale(1);
                            transition: all 0.5s ease 0s;
                        }
                        .box:hover img{
                            transform: scale(1.05);
                        }
                        .box .box-content{
                            width: 100%;
                            position: absolute;
                            bottom: 10%;
                            left: 10%;
                        }
                        .box .title,
                        .box .post{
                            display: block;
                            font-size: 25px;
                            color: #fff;
                            line-height: 25px;
                            margin: 0;
                            position: absolute;
                            bottom: 0;
                            left: 0;
                            opacity: 1;
                            transition: all 0.5s ease 0s;
                        }
                        .box:hover .title,
                        .box .post{
                            opacity: 0;
                        }
                        .box:hover .post{
                            opacity: 1;
                        }
                        @media only screen and (max-width: 990px){
                            .box{ margin-bottom: 20px; }
                        }
                    
License Terms