[First version]

This commit is contained in:
xoy 2023-12-04 21:29:49 +01:00
commit 9a8fce5647
5 changed files with 60 additions and 0 deletions

BIN
Novem.ttf Normal file

Binary file not shown.

1
Novem.txt Normal file
View File

@ -0,0 +1 @@
https://www.ggbot.net/fonts

14
index.html Normal file
View File

@ -0,0 +1,14 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>loading . . .</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="display">X</div>
<script src="script.js"></script>
</body>
</html>

14
script.js Normal file
View File

@ -0,0 +1,14 @@
var index = 0;
const label = "XOY";
const display = document.getElementsByClassName("display")[0];
function iterate_characters() {
display.innerHTML = label.charAt(index);
index = (index == label.length - 1) ? 0 : index + 1;
}
iterate_characters();
setInterval(iterate_characters, 1000);

31
style.css Normal file
View File

@ -0,0 +1,31 @@
@font-face {
font-family: Novem;
src: url(Novem.ttf);
}
@keyframes loading {
from {transform: scale(1);}
50% {transform: scale(2);}
to {transform: scale(1);}
}
html, body {
width: 100vw;
height: 100vh;
overflow: hidden;
padding: 0;
color: white;
background-color: black;
font-family: Novem;
display: flex;
}
div.display {
display: block;
width: 100px;
height: 100px;
margin: auto;
text-align: center;
font-size: 100px;
animation: loading 2s infinite;
}