-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathblinking-cursor.html
More file actions
73 lines (68 loc) · 1.35 KB
/
blinking-cursor.html
File metadata and controls
73 lines (68 loc) · 1.35 KB
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
68
69
70
71
72
73
<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="UTF-8">
<title>CSS3 animated terminal cursor</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/modernizr/2.8.3/modernizr.min.js" type="text/javascript"></script>
<style>
span {
font-family: monospace;
font-size: 2em;
}
span:after {
content: "_";
opacity: 0;
animation: cursor 1s infinite;
}
@keyframes cursor {
0% {
opacity: 0;
}
40% {
opacity: 0;
}
50% {
opacity: 1;
}
90% {
opacity: 1;
}
100% {
opacity: 0;
}
}
/* styling */
html {
width: 100%;
height: 100%;
background: radial-gradient(circle, #ffffff 0%, #aaaaaa 100%) no-repeat;
overflow-x: hidden;
overflow-y: hidden;
}
body {
text-align: center;
display: table;
width: 100%;
height: 100%;
overflow-x: hidden;
overflow-y: hidden;
}
#wrap {
box-sizing: border-box;
display: table-cell;
vertical-align: middle;
}
</style>
<link rel="stylesheet" href="https://public.codepenassets.com/css/normalize-5.0.0.min.css">
<link rel="stylesheet" href="./style.css">
<script src="https://public.codepenassets.com/js/prefixfree-1.0.7.min.js"></script>
</head>
<body>
<!-- partial:index.partial.html -->
<div id="wrap">
<span>missmisery@home:~$ </span>
</div>
<!-- partial -->
<script src='//cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script>
</body>
</html>