-
Notifications
You must be signed in to change notification settings - Fork 128
/
index.html
56 lines (49 loc) · 993 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
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
<html>
<head>
<title>Ityped V.2</title>
<style>
.ityped-cursor {
font-size: 2.2rem;
opacity: 1;
-webkit-animation: blink 0.3s infinite;
-moz-animation: blink 0.3s infinite;
animation: blink 0.3s infinite;
animation-direction: alternate;
}
@keyframes blink {
100% {
opacity: 0;
}
}
@-webkit-keyframes blink {
100% {
opacity: 0;
}
}
@-moz-keyframes blink {
100% {
opacity: 0;
}
}
</style>
</head>
<body>
<div id="app">
<span id="ityped"></span>
</div>
<div>
<input type="text" id="placeholder">
</div>
<script src="https://unpkg.com/ityped@1.0.2"></script>
<script>
ityped.init(document.querySelector("#ityped"), {
showCursor: false,
strings: ['Very nice project!', 'Yeah!', 'Shure, awesome!']
})
ityped.init("#placeholder", {
placeholder: true,
showCursor: false
})
</script>
</body>
</html>