Welcome! I think this is probably the relevant doc. I’d guess in your case it would be:
# data defined beforehand...
using GLMakie
points = Observable(data[:, 1])
fig, ax = scatter(points)
limits!(ax, 1, size(data)[1], 0, max(data...))
frames = 2:(size(data)[2])
record(fig, "animation.mp4", frames;
framerate = 30) do frame
points[] = data[:, frame]
end