JSFiddle - React, Tailwind, and code Playground
HTML
<!DOCTYPE html>
<span id="mySpan" style="font-size: 20px; font-family:courier"></span>
<script>
function myFunction() {
c = message.substring(I, I=I+1);
if (c == "\n") {
c = "<br />";
} else if (c == " ") {
c = " ";
}
mySpan.innerHTML = mySpan.innerHTML + c
if ( I < message.length ) setTimeout(myFunction, 10);
}
I = 0 ;
message = "\n __ __ _ _ _ _ _ \n \\ \\ / / (_) | | __ (_) _ __ ___ __| | (_) __ _ \n \\ \\ /\\ / / | | | |/ / | | | '_ \\ / _ \\ / _` | | | / _` |\n \\ V V / | | | < | | | |_) | | __/ | (_| | | | | (_| |\n \\_/\\_/ |_| |_|\\_\\ |_| | .__/ \\___| \\__,_| |_| \\__,_|\n |_| \nL'encyclopédie libre que chacun peut améliorer"
//message = " __ ___ _ _ _ _ \n \ \ / (_) | (_) | (_) \n \ \ /\ / / _| | ___ _ __ ___ __| |_ __ _ \n \ \/ \/ / | | |/ / | '_ \ / _ \/ _` | |/ _` |\n \ /\ / | | <| | |_) | __/ (_| | | (_| |\n \/ \/ |_|_|\_\_| .__/ \___|\__,_|_|\__,_|\n | | \n |_| \n L'encyclopédie libre que chacun peut améliorer";
myFunction();
</script>
CSS
body{
background: black;
color: #27ae60;
}
#msg{
margin-top: 80px;
margin-left: 20px;
}