<!DOCTYPE html>
<title>Example</title>
<style>
.animate {
font: bold 3em sans-serif;
color: gold;
animation: myAnimation 5s ease 1s 3 alternate forwards;
}
@keyframes myAnimation {
33% {
text-shadow: 2px 2px 2px black;
66% {
text-shadow: -2px -2px 2px black;
100% {
text-shadow: 0px 0px 10px black;
</style>
<h1 class="animate">Text Shadow</h1>