+ 6

How we can make any word/sentence to blink in web page?

the given below tag doesn't work!

9th Jan 2017, 4:09 PM
Md.Enam
Md.Enam - avatar
6 Answers
+ 5
Try this <span class="blink">Blinking!! </span> <style> .blink { animation: blink-animation 1s steps(5, start) infinite; -webkit-animation: blink-animation 1s steps(5, start) infinite; } @keyframes blink-animation { to { visibility: hidden; } } @-webkit-keyframes blink-animation { to { visibility: hidden; } } </style> hope this helps ^^
9th Jan 2017, 4:29 PM
Kamil
Kamil - avatar
+ 3
ylu can use javascript for any browser related activity...such as mouse relayed fonts related or even text related..these includes changing or modifying the texts animation and blinking are two example of it
12th Jan 2017, 4:52 AM
ARNAB BISWAS
ARNAB BISWAS - avatar
+ 2
Use this js code var speed = 500; var t = setInterval(function () {  var e = document.getElementById('blinker'); e.style.visibility = (e.style.visibility== 'hidden' ? '' : 'hidden'); },speed); Make sure to set id of the html part that you want to make it blink to "blinker"
9th Jan 2017, 4:38 PM
Omran
Omran - avatar
+ 2
thanks to all of you!
27th Jan 2017, 2:49 PM
Md.Enam
Md.Enam - avatar
+ 1
To add smooth text blinking, use the following code: CSS: .my-text { position: absolute; animation: blink 3s linear infinite; -webkit-animation: blink 3s linear infinite; } @keyframes blinker { 50% { opacity: 0.67; } } @-webkit-keyframes blinker { 50% { opacity: 0.67; } } HTML: <div id="my-text">I'm blinking</div>
12th Jan 2017, 8:38 AM
Sergey Belotserkovskiy
Sergey Belotserkovskiy - avatar
0
Guys! none of above code work please give a valid code solution!
31st Jan 2017, 8:07 AM
Md.Enam
Md.Enam - avatar