css hover link style : demo 277

CSS

(Fonts required: Cantarell.)
                        :root{
                            --white: #fff;
                            --main-color: #d94343;
                        }
                        .link{
                            color: transparent;
                            font-family: "Cantarell", sans-serif;
                            font-size: 24px;
                            font-weight: 600;
                            line-height: 31px;
                            text-transform: capitalize;
                            display: inline-block;
                            overflow: hidden;
                            transition: all 0.3s ease-in;
                            z-index: 1;
                        }   
                        .link:hover,
                        .link:focus{
                            color: transparent;
                        }
                        .link span{
                            color: var(--main-color);
                            display: block;
                            padding: 2px 10px;
                            border: 4px solid var(--main-color);
                            position: relative;
                            transition: all 0.3s ease-in;
                            z-index: 1;
                        } 
                        .link:hover span{
                            color:var(--white);
                        }
                        .link span:before{
                            content: "";
                            background: var(--white);
                            position: absolute;
                            width: 8%;
                            height: 500%;
                            transform: translateX(-50%) translateY(-50%) rotate(-60deg);
                            top: 50%;
                            left: 50%;
                            transition: all 0.3s;
                            z-index: -1;
                        }
                        .link span:hover:before{
                            background: var(--main-color);
                            width: 100%;
                            transform: translateX(-50%) translateY(-50%) rotate(-90deg);
                        }
                        @media only screen and (max-width: 767px){
                            .link{ margin-bottom: 30px; }
                        }
                    
License Terms