Programming Examples
CSS code to blink text using keyframes
CSS Code to Blink text
Solution
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Blinking Text Example</title>
<style>
.blinking-text {
animation: blinker 1s linear infinite;
}
@keyframes blinker {
50% {
opacity: 0;
}
}
</style>
</head>
<body>
<p class="blinking-text">This text will blink</p>
</body>
</html>
Output/ Explanation: