-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexample.html
More file actions
67 lines (60 loc) · 1.53 KB
/
example.html
File metadata and controls
67 lines (60 loc) · 1.53 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>❤️=🟥 Pixelated Hover</title>
<link rel="stylesheet" href="dist/pixelated-hover.css">
<style>
/* example specific styles */
* {
box-sizing: border-box;
}
html, body {
margin: 0;
background: #111;
}
main {
display: flex;
min-height: 100vh;
align-items: center;
padding: 40px 20px 20px 20px;
flex-wrap: wrap;
}
main > * {
flex: 1 0 0;
margin: 20px;
min-width: 300px;
border: 20px solid #0b0b0b;
}
nav a {
position: fixed;
top: 0;
left: 0;
display: block;
background: darkmagenta;
color: white;
font-family: consolas, monospace;
padding: 0px 10px;
font-size: 20px;
line-height: 40px;
float: left;
}
</style>
</head>
<body>
<main>
<div data-pixelated-hover=40>
<img crossorigin="anonymous" src="https://source.unsplash.com/960x960?vaporwave,city" />
</div>
<div data-pixelated-hover=10>
<img crossorigin="anonymous" src="https://source.unsplash.com/960x960?vaporwave,bust" />
</div>
<div data-pixelated-hover>
<img crossorigin="anonymous" src="https://source.unsplash.com/960x960?gameboy,console" />
</div>
</main>
<nav><a href="https://github.com/DanielBoa/pixelated-hover">view on GitHub</a></nav>
<script src="dist/pixelated-hover.js"></script>
</body>
</html>