-
Notifications
You must be signed in to change notification settings - Fork 0
/
cursorEffect.html
44 lines (31 loc) · 1.17 KB
/
cursorEffect.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
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Cursor Effect</title>
<link rel="stylesheet" href="src/static/css/cursorEffect.css">
</head>
<body>
<div class="navBar">
<div class="icon"><a href="/HUI">HUI</a></div>
</div>
<div class="cursor" color="#a29bfe" size="5px"></div>
<div class="container">
<div class="demoDiv1">Welcome</div>
<div class="demoDiv2">Cursor Effect</div>
<div class="demoDiv3">Emoji</div>
<div class="demoDiv4">
<a class="someButton" href="https://github.com/H2-won/MouseCursorEffects" target="_blank">Some Button</a>
</div>
</div>
</body>
<script src="src/static/js/cursorEffect.js"></script>
<script>
// cursorEffect(componentClassName, hoverText, hoverColor, hoverSize, hoverThickness, fontSize)
cursorEffect('icon', '', '#F63E61');
cursorEffect('demoDiv1');
cursorEffect('demoDiv2', 'Hello !', '#ffeaa7', '6em', '6px', '1.5rem');
cursorEffect('demoDiv3', '❤', 'pink', '0', '2.5px', '3rem');
cursorEffect('someButton', 'Click', 'lightcoral', '3em');
</script>
</html>