css hover link style : demo 248

CSS

(Fonts required: Mulish.)
                        :root{
                            --white: #fff;
                            --background: #ad5389;
                        }
                        .demo{ background: var(--background); }
                        .link{
                            color: var(--white);
                            font-family: 'Mulish', sans-serif;
                            font-size: 22px;
                            font-weight: 700;
                            padding: 2px 6px;
                            text-transform: capitalize;
                            display: inline-block;
                            position: relative;
                            transition: all 0.3s ease 0s;
                        }
                        .link:hover,
                        .link:focus{
                            color: var(--white);
                            text-shadow: 2px -2px rgba(0,0,0,0.15);
                        }
                        .link:before,
                        .link:after{
                            content: "";
                            background: var(--white);
                            width: 36px;
                            height: 2px;
                            transform: rotate(90deg);
                            transform-origin: 0 0;
                            opacity: 0.2;
                            position: absolute;
                            top: 0;
                            left: 0;
                            transition: all 0.3s;
                        }
                        .link:after{
                            top: auto;
                            bottom: 0;
                            left: auto;
                            right: 0;
                            transform-origin: 100% 0;
                        }
                        .link:hover:before,
                        .link:hover:after{ opacity: 1; }
                        .link:hover:before{ 
                            left: 50%;
                            transform: rotate(0deg) translateX(-50%);
                        } 
                        .link:hover:after{
                            right: 50%;
                            transform: rotate(0deg) translateX(50%);
                        } 
                        @media only screen and (max-width: 767px){
                            .link{ margin-bottom: 30px; }
                        }
                    
License Terms