<!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>