-
Notifications
You must be signed in to change notification settings - Fork 99
/
index.html
101 lines (86 loc) · 2 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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
<!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>Document</title>
<link rel="stylesheet" href="./dist/kursor.css">
<style>
body {
height: 100vh;
overflow: hidden;
display: flex;
align-items: center;
justify-content: center;
}
button {
padding: 15px;
border: 0px;
border: 2px solid rgb(0, 100, 200);
color: rgb(0, 100, 200);
transition: all .25s ease;
background: transparent
}
button:hover {
background: rgb(0, 100, 200);
color: rgb(255,255,255);
}
.hoverx {
background: rgb(200, 100, 200) !important
}
.caja {
width: 400px;
height: 400px;
border: 1px solid rgb(200, 100, 200);
overflow: hidden;
position: relative;
}
.caja2 {
width: 400px;
height: 400px;
border: 1px solid rgb(0, 100, 200);
overflow: hidden;
position: relative;
}
</style>
</head>
<body>
<button onclick="clickx()" class="button k-hover">Hello World</button>
<button onclick="clickx2()" class="button k-hover">Hello World 2</button>
<div onmouseenter="mouseenter()" onmouseleave="mouseleave()" class="caja">
</div>
<!-- <div class="caja2">
</div> -->
</body>
<script src="./dist/kursor.js"></script>
<script>
var kursorx = new kursor({
type: 1,
color: 'rgba(200,100,0)',
})
function mouseenter () {
kursorx.hidden()
}
function mouseleave () {
kursorx.hidden(false)
}
// function clickx() {
// // kursorx.color('rgba(100,0,100)')
// kursorx.hidden()
// }
// function clickx2() {
// // kursorx.color('rgba(100,0,100)')
// kursorx.hidden(false)
// }
var kursor2 = new kursor({
el: '.caja',
color: 'rgba(0,0,255)',
type: 4,
})
// var kursor2 = new kursor({
// type: 2,
// removeDefaultCursor: false,
// })
</script>
</html>