-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
71 lines (69 loc) · 2.14 KB
/
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<title>Murphy examples</title>
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/reset-css@4.0.1/reset.min.css"
/>
<style>
div {
width: 100vw;
height: 100vh;
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
}
p {
opacity: 0;
font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
color: #f1a4a4;
font-size: 3rem;
margin: 20px;
}
.cover {
flex-direction: row;
}
</style>
</head>
<body>
<div class="cover">
<p data-murphy="bottom-to-top">m</p>
<p data-murphy="bottom-to-top" data-murphy-animation-delay="400">u</p>
<p data-murphy="bottom-to-top" data-murphy-animation-delay="500">r</p>
<p data-murphy="bottom-to-top" data-murphy-animation-delay="600">p</p>
<p data-murphy="bottom-to-top" data-murphy-animation-delay="700">h</p>
<p data-murphy="bottom-to-top" data-murphy-animation-delay="800">y</p>
<p data-murphy="bottom-to-top" data-murphy-animation-delay="900">.</p>
<p data-murphy="bottom-to-top" data-murphy-animation-delay="1000">j</p>
<p data-murphy="bottom-to-top" data-murphy-animation-delay="1100" data-stay="">s</p>
</div>
<div>
<p data-murphy="bottom-to-top">Bottom to top</p>
<p data-murphy="top-to-bottom">Top to bottom</p>
<p data-murphy="left-to-right">Left to right</p>
<p data-murphy="right-to-left">Right to left</p>
</div>
<div>
<p data-murphy="bottom-to-top">Bottom to top</p>
</div>
<div>
<p data-murphy="top-to-bottom">Top to bottom</p>
</div>
<div>
<p data-murphy="left-to-right">Left to right</p>
</div>
<div>
<p data-murphy="right-to-left">Right to left</p>
</div>
</body>
<script src="./dist/index.js"></script>
<script>
murphy.reset();
murphy.play();
</script>
</html>