Give the parent a position
The overlay fills its parent with position: absolute; inset: 0, so the parent needs position: relative (or any non-static position). The pointer is tracked over that parent.
Pick the colour for the background
The line peaks at 60% opacity and the head is small, so it needs contrast. The brand orange works on dark sections; on light ones use a dark colour via data-au-color.
Balance follow and length
data-au-follow sets how lazily the square chases the pointer; data-au-length sets how much of the path stays visible. A slow follow with a long trail feels drawn and deliberate; a fast follow with a short trail feels quick and precise.
Mind the stacking
The overlay sits at z-index: 2 inside its parent, so it draws over the section's content. Raise it if that content has its own stacking; it never blocks clicks either way.