Dashboard Temp Share Shortlinks Frames API

HTMLify

Cursor Canva
Views: 409 | Author: djdj
 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
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Neon Cursor Effect</title>
    <style>
           *
{box-sizing: border-box;}

body,
#neon{
    margin: 0;
    width: 100%;
    height: 100dvh;
}

#neon{
    overflow: hidden;
} 
    </style>
    <script type="module">
        import { neonCursor } from "https://unpkg.com/threejs-toys@0.0.8/build/threejs-toys.module.cdn.min.js";

const root = document.getElementById("neon");

const option = {
    el: root,
    shaderPoint: 80,
    curvePoint: 80,

    curveLerp: 0.8,

    radius1: 1,
    radius2: 5,

    velocityThreshold: 10,

    sleepRadiusY: 100,
    sleepRadiusX: 100,

    sleepTimeCoefX: 0.0025,
    sleepTimeCoefY: 0.001,

};
neonCursor(option);
    </script>
</head>
<body>
    <div id="neon"></div>
</body>
</html>