.custom-animation { border-radius: 7px; position: absolute; top: 20px; left: 50%; color: white; font-size: 24px; padding: 20px; background-color: blue; transform: translateX(-50%); text-decoration: none; -webkit-animation: action 1s infinite alternate; animation: action 1s infinite alternate; }