css hover link style : demo 273

CSS

(Fonts required: Mulish.)
                        :root{
                            --white: #fff;
                            --color1: #f75700;
                            --color2: #f90000;
                        }
                        .link{
                            color:var(--color1);
                            font-family: 'Mulish', sans-serif;
                            font-size: 22px;
                            font-weight: 700;
                            padding: 2px 6px;
                            text-transform: capitalize;
                            display: inline-block;
                            border: 1px solid var(--color1);
                            border-radius: 10px;
                            position: relative;
                            overflow: hidden;
                            transition: all 0.3s ease 0s;
                            z-index: 1;
                        }
                        .link:hover,
                        .link:focus{
                            color: var(--white);
                            border: 1px solid transparent;
                        }
                        .link:before,
                        .link:after{
                            content: "";
                            background: var(--color1);
                            width: 0%;
                            height: 100%;
                            transform: skew(15deg);
                            position: absolute;
                            top: 0;
                            left: -10px;
                            transition: 0.5s;
                            z-index: -1;
                        }
                        .link:after{
                            left: auto;
                            right: -10px;
                            background: var(--color2);
                        }
                        .link:hover:before, 
                        .link:hover:after {
                            width: 60%;
                        }
                        @media only screen and (max-width: 767px){
                            .link{ margin-bottom: 30px; }
                        }
                    
License Terms