Meaning of “on and off” - Learner’s Dictionary

on and off

(also off and on)

If something happens on and off during a period of time, it happens sometimes:

They've been seeing each other on and off since Christmas.

(Definition of “on and off” from the Cambridge Learner’s Dictionary © Cambridge University Press)