css hover link style : demo 267

CSS

(Fonts required: Secular One.)
                        :root{
                            --white: #fff;
                            --black: #333;
                            --background: #303952;
                        }
                        .link{
                            color: var(--white);
                            background: var(--background);
                            font-family: "Secular One", sans-serif;
                            font-size: 22px;
                            font-weight: 500;
                            line-height: 31px;
                            padding: 2px 12px;
                            text-transform: capitalize;
                            border: 3px solid transparent;
                            display: inline-block;
                            overflow: hidden;
                            position: relative;
                            box-shadow: 0.4rem 0.4rem 0 #596275;
                            transition: all 0.5s;
                            z-index: 1;
                        }   
                        .link:hover,
                        .link:focus{
                            color: var(--background);
                            border: 3px solid var(--background);
                            box-shadow: none;
                        }
                        .link:before{
                            content: "";
                            background: var(--white);
                            width: 100%;
                            height: 100%;
                            position: absolute;
                            top: 45px;
                            left: 0;
                            transition: all 0.5s;
                            z-index: -1;
                        }
                        .link:hover:before{
                           top: 0;
                        }
                        @media only screen and (max-width: 767px){
                           .link{ margin-bottom: 30px; }
                        }
                    
License Terms