css hover link style : demo 38

HTML

CSS

                        .link{
                            display: inline-block;
                            position: relative;
                        }
                        .link span{
                            color: #505050;
                            font-size: 25px;
                            font-weight: 600;
                            letter-spacing: 1px;
                            text-transform: uppercase;
                            text-align: center;
                            padding: 5px 15px;
                            display: block;
                        }
                        .link:hover span{ color: transparent; }
                        .link:before{
                            content: attr(data-hover);
                            color: #fff;
                            background-color: #d80d65;
                            font-size: 25px;
                            letter-spacing: 1px;
                            text-transform: uppercase;
                            font-weight: 600;
                            height: 100%;
                            width: 100%;
                            padding: 5px 15px;
                            transform: rotateX(-90deg);
                            position: absolute;
                            left: 0;
                            top: 0;
                            transition: all 0.35s linear;
                        }
                        .link:hover:before{ transform: rotateX(0); }
                        @media only screen and (max-width: 990px){
                            .link span{ font-size: 20px; }
                            .link:before{ font-size: 20px; }
                        }
                        @media only screen and (max-width: 767px){
                            .link{ margin-bottom: 20px; }
                        }
                    
License Terms