Leaves were spinning around in the air.

Literal

Leaves [subject-が] air-in [at-で] round-and-round was-turning.

ぐるぐる is the spinning/rotating mimetic. 空中 ('in the air') uses 中 with a location word for 'within the air.' ~ていた is past ongoing.