:root{ --shadow-color1: #eb3b5a; --shadow-color2: #8854d0; } .link{ color: transparent; font-family: 'Dosis', sans-serif; font-size: 24px; font-weight: 600; line-height: 20px; text-transform: capitalize; text-shadow: 0 0 0 var(--shadow-color1), 0 0 0 var(--shadow-color2); display: inline-block; } .link:focus, .link:hover{ color: transparent; animation: drop .6s 1 linear; } @keyframes drop{ 0%{ text-shadow: 0 0 0 var(--shadow-color1), 0 -35px 0 var(--shadow-color2); } 20%{ text-shadow: 0 0 0 var(--shadow-color1), 0 -15px 0 var(--shadow-color2); } 30%{ text-shadow: 0 15px 0 var(--shadow-color1), 0 0px 0 var(--shadow-color2); } 40%{ text-shadow: 0 35px 0 var(--shadow-color1), 0 0px 0 var(--shadow-color2); } 41%{ text-shadow: 0 35px 0 var(--shadow-color1), 0 0px 0 var(--shadow-color2), 0 -35px 0 var(--shadow-color1); } 70%{ text-shadow: 0 35px 0 var(--shadow-color1), 0 15px 0 var(--shadow-color2), 0 0px 0 var(--shadow-color1); } 80%{ text-shadow: 0 35px 0 var(--shadow-color1), 0 35px 0 var(--shadow-color2), 0 0px 0 var(--shadow-color1); } 100%{ text-shadow: 0 35px 0 var(--shadow-color1), 0 35px 0 var(--shadow-color2), 0 0px 0 var(--shadow-color1); } } @media only screen and (max-width: 767px){ .link{ margin-bottom: 30px; } }