I have a website where the content changes automatically as shown below.
But it doesn't work on IOS and safari.
Does spin not work here? or am i doing something wrong?
If it's an issue with IOS and Safari, How can i have a fallback text so that it doesn't look empty
#spin {
color: red;
}
#spin:after {
content: "";
animation: spin 12s linear infinite;
}
@keyframes spin {
0% {
content: "Hello 1";
}
25% {
content: "Hello 2";
}
50% {
content: "Hello 3";
}
75% {
content: "Hello 4";
}
100% {
content: "Hello 5";
}
}
<h1>
Say a warm <br/> <span id="spin"></span>
</h1>