on and off

on and off AND off and on {reversible} (occasionally; erratically; now and again ) — урывками, не систематически, бессистемно

I only came to class on and off.

See also [урывками ]