-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
79 lines (70 loc) · 1.84 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
72
73
74
75
76
77
78
79
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>DpkCursor</title>
<style>
body {
min-height: 100vh;
background-color: black;
overflow: hidden;
color: white;
font-family: sans-serif;
}
.box-table {
display: block;
box-shadow: 0px 100px 70px -80px rgba(0, 0, 0, 0.55);
margin: 0;
padding: 5vw 10vw;
}
.box-table::after {
content: "";
clear: both;
display: table;
}
.box-table li {
display: flex;
position: relative;
align-items: center;
justify-content: center;
float: left;
width: 25%;
min-height: 20vw;
border: 1.5px solid #36363686;
box-sizing: border-box;
margin: 0px;
margin-left: -1px;
margin-bottom: -1px;
@media screen and (max-width: 576px) {
width: 50%;
min-height: 170px;
}
}
</style>
</head>
<body>
<ul class="box-table">
<li class="dpk-hover" data-hover-text="hi">Hello</li>
<li class="dpk-hover" data-hover-bg="blue">Blue</li>
<li class="dpk-hover" data-hover-img="./glow.png">Glow</li>
<li class="dpk-hover" data-hover-class="emogy" data-hover-text="💚">
emogy
</li>
<li class="dpk-hover" data-hover-class="mixBlend">Mix Blend</li>
<li class="dpk-hover" data-hover-bg="#fefefe1d" data-hover-text="call">
Contact
</li>
<li class="dpk-hover" data-hover-img="./glow.png">Hello</li>
<li class="dpk-hover" data-hover-class="noCursor">Home</li>
</ul>
<script src="dpkCursor.min.js"></script>
<script type="module">
import "./src/dpkCursor.scss";
import { dpkCursor } from "./src/dpkCursor";
const customCursor = new dpkCursor({
ease: 0.25
});
</script>
</body>
</html>