css hover link style : demo 259

CSS

(Fonts required: Viga.)
                        :root{
                            --black:#000;
                            --color: #ff1493;
                        }
                        .link{
                            color: var(--black);
                            font-family: "Viga", sans-serif;
                            font-size: 20px;
                            font-weight: 500;
                            padding: 6px 10px;
                            text-transform: capitalize;
                            border-radius: 0;
                            display: inline-block;
                            position: relative;
                            transition: all 0.3s ease 0s;
                            margin: 0 10px;
                            z-index: 1;
                        }
                        .link:hover,
                        .link:focus{
                            color: var(--color);
                        }
                        .link:before,
                        .link:after,
                        .link span:before,
                        .link span:after{
                            content:"";
                            background: #ff1493;
                            width: 2px;
                            height: 100%;
                            position: absolute;
                            top: 0;
                            left: 0;
                            transition: all 250ms ease-in-out;
                        }
                        .link:after{ 
                            left: auto;
                            right: 0;
                        }
                        .link span:before,
                        .link span:after{
                            width: 100%;
                            height: 2px;
                        }
                        .link span:after{
                            top: auto;
                            bottom: 0;
                        }
                        .link:hover:before{
                            left: -5px;
                        }
                        .link:hover:after{
                            left: auto;
                            right: -5px;
                        }
                        .link:hover span:before{
                            top: -5px;
                        }
                        .link:hover span:after{
                            top:auto;
                            bottom: -5px;
                        }
                        @media only screen and (max-width: 767px){
                            .link{ margin-bottom: 30px; }
                        }
                    
License Terms