css hover link style : demo 270

CSS

(Fonts required: Tajawal.)
                        :root{
                            --white: #fff;
                            --color1: #008cffad;
                            --color2: #8000804f;
                            --background: #212121;
                        }
                        .demo{ background: var(--background); }
                        .link{
                            color: var(--white);
                            background: transparent;
                            font-family: "Tajawal", sans-serif;
                            font-size: 24px;
                            font-weight: 700;
                            line-height: 31px;
                            padding: 4px 6px;
                            text-transform: capitalize;
                            border-radius: 0;
                            border: 0;
                            display: inline-block;
                            overflow: hidden;
                            position: relative;
                            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
                            transition: all 0.3s ease;
                            margin: 0 10px;
                            z-index: 1;
                        }   
                        .link:hover,
                        .link:focus{
                            color: var(--white);
                        }
                        .link:before {
                            content: "";
                            background: linear-gradient(320deg,var(--color1),var(--color2));
                            width: 100%;
                            height: 100%;
                            border-radius: 0;
                            position: absolute;
                            top: 0;
                            left: 0;
                            transition: all 3s;
                            z-index: -1;    
                        }
                        .link:hover:before {
                            animation: rotate 1s ease;
                        }
                        @keyframes rotate {
                            0% { transform: rotateY(180deg); }
                          100% { transform: rotateY(360deg); }
                        }
                        @media only screen and (max-width: 767px){
                            .link{ margin-bottom: 30px; }
                        }
                    
License Terms