+ 6
Can you delay a text for some time before it display
no clue
5 Respuestas
+ 9
Hi Lesley Tulienge,
In Javascript:
setTimeout (function delay() {
console.log("Delayed string");
}, 2000);
2000 is in miliseconds which is in this case 2 seconds
setTimeout is only looping once throught the code.
setInterval will loop infinity without clearInterval.
https://code.sololearn.com/WJT4V3hjitzM/?ref=app
+ 7
Lesley Tulienge we can make it using just css
https://code.sololearn.com/WCF7U85UvWQH/?ref=app
+ 2
You can use css "animation" property (setting "animation-delay" also) on opacity prop.
With js you can use setTimeout for change css of your element... Search in Google for futher info
+ 2
Yes ⌚
0
of course using animation from css