css hover link style : demo 2

HTML

CSS

                        .link{
                            display: inline-block;
                            overflow: hidden;
                            position: relative;
                        }
                        .link:before,
                        .link:after{
                            content: "";
                            width: 50%;
                            height: 5px;
                            background: #b374b2;
                            position: absolute;
                            top: 0;
                            left: 0;
                            opacity: 0.7;
                            transition: all 0.4s ease-in-out 0.5s;
                        }
                        .link:after{
                            background: #24265b;
                            top: auto;
                            left: auto;
                            bottom: 0;
                            right: 0;
                        }
                        .link:hover:before,
                        .link:hover:after{
                            width: 5px;
                            height: 100%;
                            transition-delay: 0s;
                        }
                        .link > span{
                            display: block;
                            padding: 10px 20px;
                            font-size: 20px;
                            color: #333;
                            text-transform: uppercase;
                        }
                        @media only screen and (max-width: 767px){
                            .link{ margin-bottom: 20px; }
                        }
                    
License Terms