This repository was archived by the owner on Sep 24, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdemo.html
67 lines (58 loc) · 2.13 KB
/
demo.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>LiveType jQuery Plugin :: by Tobal San</title>
<link href='http://fonts.googleapis.com/css?family=Droid+Sans:400,700' rel='stylesheet' type='text/css'>
<style>
body {
font-family: 'Droid Sans', Arial, sans-serif;
}
.container {
margin: 0 auto;
width: 960px;
}
.example {
font-size: 1.8em;
}
p.signature {
text-align: right;
font-size: 0.8em;
}
</style>
</head>
<body>
<div class="container">
<div class="example">
<p>Hello my friends !</p>
<p>
How are you today ? <br>
Here is a simple example of my <strong>LiveType plugin</strong>. <br>
If you want to give the impression that someone is typing live on your visitor screen, this is the plugin you are looking for.
</p>
<p>
Besides, it is very customizable. You can edit things like the typing speed, which type of cursor you want, its blinking speed, on which characters should the auto-typing make a pause, etc…
Also, you can use it on any general content html element (div, p).
</p>
<p>
Finally, although it is best used with pure text, you're not limited to text content. You can actually have HTML markup inside your container, and have it loaded "as-it-is-typed".
Like this : <img src="images/albert.jpg" alt="Albert !">
</p>
<p>Enjoy !</p>
<p class="signature">
Sincerely yours,<br>
<strong>Tobal San</strong>
</p>
</div>
</div>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.8/jquery.min.js"></script>
<script src="js/jquery.liveType.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$('.example').liveType({
typeSpeed: 50
});
})
</script>
</body>
</html>