Skip to content

Commit 86b0f82

Browse files
committed
updated demos page
1 parent 158db53 commit 86b0f82

File tree

1 file changed

+23
-5
lines changed

1 file changed

+23
-5
lines changed

index.html

+23-5
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ <h1 class="title">Typed.js</h1>
2525

2626
<hr>
2727

28-
<h2>Basic Demo</h2>
28+
<h2 id="basic">Basic Demo</h2>
2929
<div class="type-wrap">
3030
<div id="typed-strings">
3131
<span>Typed.js^10 is a <strong>JavaScript</strong> library.</span>
@@ -68,7 +68,7 @@ <h2>Basic Demo</h2>
6868

6969
<hr>
7070

71-
<h2>Fade Out</h2>
71+
<h2 id="fade">Fade Out</h2>
7272
<div class="type-wrap">
7373
<span id="typed2" style="white-space:pre;"></span>
7474
</div>
@@ -88,7 +88,7 @@ <h2>Fade Out</h2>
8888

8989
<hr>
9090

91-
<h2>Smart Backspace</h2>
91+
<h2 id="smartBack">Smart Backspace</h2>
9292
<div class="type-wrap">
9393
<span id="typed3"></span>
9494
</div>
@@ -107,7 +107,7 @@ <h2>Smart Backspace</h2>
107107

108108
<hr>
109109

110-
<h2>In an input</h2>
110+
<h2 id="input">In an input</h2>
111111
<div class="type-wrap">
112112
<input id="typed4" type="text" style="padding: 10px;">
113113
</div>
@@ -127,7 +127,7 @@ <h2>In an input</h2>
127127

128128
<hr>
129129

130-
<h2>Shuffled</h2>
130+
<h2 id="shuffle">Shuffled</h2>
131131
<div class="type-wrap">
132132
<span id="typed5" style="white-space:pre;"></span>
133133
</div>
@@ -146,6 +146,24 @@ <h2>Shuffled</h2>
146146
</code>
147147
</pre>
148148

149+
<hr>
150+
151+
<h2 id="bulk">Bulk Typing</h2>
152+
<div class="type-wrap" style="height: 50px;">
153+
<span id="typed6" style="white-space:pre;"></span>
154+
</div>
155+
156+
<pre>
157+
<code class="javascript">
158+
var typed6 = new Typed('#typed6', {
159+
strings: ['npm install^1000\n `installing components...` ^1000\n `Fetching from source...`'],
160+
typeSpeed: 40,
161+
backSpeed: 0,
162+
loop: true
163+
});
164+
</code>
165+
</pre>
166+
149167

150168
</div>
151169

0 commit comments

Comments
 (0)