Custom cursor on a website: when it fits and how to build it
A custom cursor: where it adds character and where it gets in the way, how to keep it smooth, mobile-safe and accessible. Examples and ready options.

A custom cursor is one of the most visible tricks on portfolios and promo sites. It sets the tone at once, but turns annoying fast without rules.
Where it works
- Portfolios of designers, studios and photographers.
- Product and launch promo pages.
- Galleries where the cursor hints an action: “view”, “drag”.
Where to skip it
- Online stores and tools where speed matters.
- Long forms and dashboards.
- Sites used a lot by older visitors.

Rules of a good cursor
- The pointer follows the mouse with no lag; the effect around it may ease.
- Keep the system cursor on inputs and text links.
- Turn it off on touch devices: there is no hover.
- Animate only transform and opacity.
- Respect reduced motion.
The simplest base
const dot = document.querySelector('.cursor');
addEventListener('pointermove', e => {
dot.style.transform = `translate(${e.clientX}px, ${e.clientY}px)`;
});Then comes design: a liquid trail, embers, a lens. The catalog has ready cursors that already handle mobile and performance.

A good cursor helps quietly. If a visitor thinks about it for more than a second, it is too loud.




