css hover link style : demo 261

CSS

(Fonts required: Acme.)
                        :root{
                            --white: #fff;
                            --color: #0eae57;
                            --hover-color: #0c7475;
                        }
                        .link{
                            background: var(--color);
                            font-family: "Acme", sans-serif;
                            font-size: 22px;
                            font-weight: 600;
                            line-height: 31px;
                            padding: 2px 6px;
                            text-transform: capitalize;
                            letter-spacing: 1px;
                            border: none;
                            display: inline-block;
                            overflow: hidden;
                            position: relative;
                            transition: all 0.3s ease-in-out;
                            z-index: 1;
                        }   
                        .link:hover,
                        .link:focus{
                            color: var(--white);
                        }
                        .link:before{
                            content: "";
                            background: var(--hover-color);
                            display: block;
                            width: 0%;
                            height: 100%;
                            position: absolute;
                            top: 0;
                            right: 0;
                            transition: all 0.4s ease-in-out;
                            z-index: -1;
                        }
                        .link:hover:before{
                            width: 100%;
                            right: auto;
                            left: 0;
                        }
                        .link span{
                            color: var(--white);
                            display: block;
                            transition: all 0.3s ease-in-out;
                        }
                        .link:hover span{ 
                            color: var(--white);
                            animation: scaleUp 0.3s ease-in-out;
                        }
                        @keyframes scaleUp{
                              0% { transform: scale(1); }
                             50% { transform: scale(0.95); }
                            100% { transform: scale(1); }
                        }
                        @media only screen and (max-width: 767px){
                           .link{ margin-bottom: 30px; }
                        }
                    
License Terms