Move the pointer along the dock — icons magnify near the cursor and settle back down as it moves away. On narrow viewports, use the toggle button instead.