-
This commit is contained in:
22
index.html
22
index.html
@@ -97,6 +97,10 @@
|
|||||||
letter-spacing: 4px;
|
letter-spacing: 4px;
|
||||||
/* Ein leichter Leuchteffekt passend zum Blau */
|
/* Ein leichter Leuchteffekt passend zum Blau */
|
||||||
text-shadow: 0 0 10px rgba(23, 147, 209, 0.3), 0 0 20px rgba(23, 147, 209, 0.2);
|
text-shadow: 0 0 10px rgba(23, 147, 209, 0.3), 0 0 20px rgba(23, 147, 209, 0.2);
|
||||||
|
min-height: 1.2em; /* Verhindert das Springen des Layouts */
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
}
|
}
|
||||||
p { color: #aaa; line-height: 1.6; margin-bottom: 30px; }
|
p { color: #aaa; line-height: 1.6; margin-bottom: 30px; }
|
||||||
|
|
||||||
@@ -128,7 +132,6 @@
|
|||||||
.command { color: #e0e0e0; }
|
.command { color: #e0e0e0; }
|
||||||
.cursor {
|
.cursor {
|
||||||
display: inline-block; width: 8px; height: 15px; background: #e0e0e0;
|
display: inline-block; width: 8px; height: 15px; background: #e0e0e0;
|
||||||
animation: blink 1s infinite; vertical-align: middle;
|
|
||||||
}
|
}
|
||||||
.title-cursor {
|
.title-cursor {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
@@ -208,7 +211,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="container">
|
<div class="container">
|
||||||
|
|
||||||
<h1>Helios<span class="title-cursor">_</span></h1>
|
<h1><span id="typewriter"></span><span class="title-cursor">_</span></h1>
|
||||||
|
|
||||||
<div class="terminal">
|
<div class="terminal">
|
||||||
<pre>
|
<pre>
|
||||||
@@ -248,6 +251,21 @@
|
|||||||
|
|
||||||
<br><br><br>
|
<br><br><br>
|
||||||
</div>
|
</div>
|
||||||
|
<script>
|
||||||
|
const text = "Helios";
|
||||||
|
const speed = 150; // Geschwindigkeit in Millisekunden pro Buchstabe
|
||||||
|
let i = 0;
|
||||||
|
|
||||||
|
function typeWriter() {
|
||||||
|
if (i < text.length) {
|
||||||
|
document.getElementById("typewriter").innerHTML += text.charAt(i);
|
||||||
|
i++;
|
||||||
|
setTimeout(typeWriter, speed);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Startet den Effekt, wenn die Seite geladen ist
|
||||||
|
window.onload = typeWriter;
|
||||||
|
</script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
Reference in New Issue
Block a user