Skip to content

Cursor

The cursor effects add an extra layer of detail to your website, making it more interactive and appealing to users, while giving it an elegant touch that reflects quality and dedication to your work. These components can be applied across the entire site or to specific elements/sections, depending on your focus and design.

Add the ID to the element where you want to apply the effect and import the component. Although it only includes a script, in this example it will be imported as an Astro component to maintain consistency with the rest of the components.

src/layouts/Layout.astro
---
import OrbitDot from "../components/OrbitDot.astro";
import "../styles/global.css";
---
<!doctype html>
<html lang="en">
<head>
(...)
</head>
<body id="mouse-area" class="relative <-- Add the class">
(...)
<OrbitDot />
</body>
</html>



Click anywhere


Click anywhere