Skip to content

Commit ff3d299

Browse files
author
Rajul
committed
Slow hero typing and remove trailing period
1 parent 487e918 commit ff3d299

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

docs/index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,10 @@
3737
irajul / kutuk
3838
</a>
3939
<p class="hero-kicker">kutuk for macos</p>
40-
<h1 class="hero-title" data-text="the missing click." aria-label="the missing click.">
41-
<span class="type-ghost" aria-hidden="true">the missing click.</span>
40+
<h1 class="hero-title" data-text="the missing click" aria-label="the missing click">
41+
<span class="type-ghost" aria-hidden="true">the missing click</span>
4242
<span class="type-live" aria-hidden="true">
43-
<span class="type-target"><span id="typeTarget" class="type-text">the missing click.</span><span class="type-cursor" id="typeCursor">_</span></span>
43+
<span class="type-target"><span id="typeTarget" class="type-text">the missing click</span><span class="type-cursor" id="typeCursor">_</span></span>
4444
</span>
4545
</h1>
4646
<p class="hero-subtitle">

docs/site.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ if (heroTitle && typeTarget && typeCursor) {
131131
const character = phrase[i - 1];
132132
typeTarget.textContent = phrase.slice(0, i);
133133
playKeySound(character);
134-
await wait(character === " " ? 54 : 62);
134+
await wait(character === " " ? 84 : 96);
135135
}
136136

137137
typeCursor.classList.remove("is-typing");
@@ -143,7 +143,7 @@ if (heroTitle && typeTarget && typeCursor) {
143143
return;
144144
}
145145
typeTarget.textContent = phrase.slice(0, i);
146-
await wait(38);
146+
await wait(46);
147147
}
148148

149149
typeCursor.classList.remove("is-typing");

0 commit comments

Comments
 (0)