Install cairo-dock-showmouse-plug-in by entering the following commands in the terminal:
sudo apt update sudo apt install cairo-dock-showmouse-plug-in
Showmouse plug-in Cairo-dock
A collection of official plug-ins and applets for cairo-dock. . This plug-in draws some animation around the cursor when it's inside a dock/desklet.