css hover link style : demo 9

HTML

CSS

                        .link{
                            display: inline-block;
                            padding: 7px 10px;
                            font-size: 20px;
                            color: #001d26;
                            text-transform: uppercase;
                            position: relative;
                        }
                        .link:hover{ color: #001d26; }
                        .link:before,
                        .link:after{
                            content: "";
                            width: 100%;
                            height: 2px;
                            background: #d2782b;
                            opacity: 0;
                            position: absolute;
                            top: -50%;
                            left: 0;
                            transition: all 0.3s ease 0s;
                        }
                        .link:after{
                            top: auto;
                            bottom: -50%;
                        }
                        .link:hover:before{
                            opacity: 1;
                            top: 0;
                        }
                        .link:hover:after{
                            opacity: 1;
                            bottom: 0;
                        }
                        @media only screen and (max-width: 767px){
                            .link{ margin-bottom: 20px; }
                        }
                    
License Terms