forked from straversi/Typer.js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplayground.html
39 lines (36 loc) · 1.3 KB
/
playground.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Typer.js</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<style>
/** { position: absolute; }*/
</style>
</head>
<body>
<p>More coming soon.</p>
<a href="index.html">Back</a>
<h3>Example</h3>
<p>
In a paragraph: <span class="typer" id="some-id" data-delay="100" data-delim=":" data-words="apples:and:oranges"
data-colors="red,black,orange"></span>
<span class="cursor" data-cursorDisplay="_" data-owner="some-id"></span>
</p>
<button class="typer-stop" data-owner="some-id">Stop</button>
<button class="typer-start" data-owner="some-id">Start</button>
<script src="typer.js"></script>
<h4>Script</h4>
<p>The following produced the above effect.</p>
<pre>
<p>
In a paragraph: <span class="typer" id="some-id" data-delay="100" data-delim=":" data-words="apples:and:oranges"
data-colors="red,black,orange"></span>
<span class="cursor" data-cursorDisplay="_" data-owner="some-id"></span>
</p>
<button class="typer-stop" data-owner="some-id">Stop</button>
<button class="typer-start" data-owner="some-id">Start</button>
<script src="typer.js"></script>
</pre>
</body>
</html>