-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
31 lines (28 loc) · 806 Bytes
/
index.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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Test</title>
</head>
<body>
<h1 data-text="TypingJS"></h1>
<p data-text="A lightweight lib for typing effect in front-end"></p>
<footer>Footer async - 2017</footer>
<script src="typing-0.3.0.min.js" charset="utf-8"></script>
<script type="text/javascript">
document.addEventListener('DOMContentLoaded', function() {
var title = document.querySelector('h1'),
paragraph = document.querySelector('p'),
footer = document.querySelector('footer');
var typingjs = new TypingJS();
typingjs(title, {
sync: true
});
typingjs(paragraph, {
sync: true
});
typingjs(footer);
});
</script>
</body>
</html>