.link{ color: #111; font-family: 'Merienda One', cursive; font-size: 23px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; display: inline-block; position: relative; z-index: 1; transition: all 0.05s ease 0s; } .link:hover{ color: #8e0909; } .link:before{ content: ''; background-color: #ffa801; width: 100%; height: 100%; transform: scale(0); position: absolute; left: 0; bottom: 0; z-index: -1; } .link:focus:before, .link:hover:before{ transform: scale(1); animation: bounce 1s cubic-bezier(0.075, 0.82, 0.165, 1); } .link span{ line-height: 25px; display: block; transition: all 0.3s ease 0s; } .link:hover span{ transform: scale(0.9,0.81); } @keyframes bounce{ from{ transform: scale(1.5) skewX(80deg); } to{ transform: scale(1) skewX(0); } } @media only screen and (max-width: 767px){ .link{ margin-bottom: 30px; } }