css hover link style : demo 79

CSS

(Fonts required: PT Sans Caption.)
                        .link{
                            color: #fff;
                            background-color: transparent;
                            font-family: 'PT Sans Caption', sans-serif;
                            font-size: 25px;
                            font-weight: 700;
                            line-height: 30px;
                            letter-spacing: 1px;
                            text-transform: uppercase;
                            padding: 3px 10px;
                            display: inline-block;
                            position: relative;
                            z-index: 1;
                            transition: all 0.5s;
                        }
                        .link:hover{
                            color: #fff;
                            background-color: #e84393;
                            text-shadow:  0 0 5px #555;
                        }
                        .link span{ display: block; }
                        .link:before,
                        .link:after,
                        .link span:before,
                        .link span:after{
                            content: attr(data-hover);
                            color: #e84393;
                            background-color: #fff;
                            text-align: center;
                            width: 100%;
                            height: 100%;
                            padding: 3px 10px;
                            white-space: nowrap;
                            position: absolute;
                            top: 0;
                            left: 0;
                            z-index: 1;
                            transition: all 0.5s;
                            clip-path: polygon(0 0, 50% 0, 50% 50%, 0 50%);
                        }
                        .link:after{
                            left: auto;
                            right: 0;
                            clip-path: polygon(100% 0, 50% 0, 50% 50%, 100% 50%);
                        }
                        .link span:before{
                            top: auto;
                            bottom: 0;
                            clip-path: polygon(0 50%, 50% 50%, 50% 100%, 0 100%);
                        }
                        .link span:after{
                            top: auto;
                            bottom: 0;
                            left: auto;
                            right: 0;
                            clip-path: polygon(100% 50%, 49% 49%, 50% 100%, 100% 100%);
                        }
                        .link:hover:before,
                        .link:hover:after,
                        .link:hover span:before,
                        .link:hover span:after{
                            background-color: transparent;
                            width: 0;
                            height: 0;
                        }
                        @media only screen and (max-width: 767px){
                            .link{ margin: 0 0 20px 0; }
                        }
                    
License Terms