Britannica Dictionary definition of ON–AGAIN, OFF–AGAIN
chiefly US
:happening or existing at some times and not at other times
on-again, off-again fads
She has been his on-again, off-again girlfriend for the past several years. [=she has been his girlfriend at certain times and not been his girlfriend at other times during the past several years]