เปลี่ยนสี text ใน css
@keyframes blinkAndChangeColor {
0% {
opacity: 1;
color: yellow;
/* Initial color */
}
20% {
color: blue;
}
40% {
color: green;
}
60% {
color: red;
}
80% {
color: orange;
}
100% {
color: yellow;
/* Back to initial color */
}
}
.blinking-icon {
animation: blinkAndChangeColor 5s infinite;
/* Slower blinking (5 seconds) */
}
************* index **********************
<b><span id="schname" class="blinking-icon"><?!=setting[16][1]?></span></b>
*************************************