What is the meaning of -다가?

An emphatic particle.

and then; conveys an action or state coming to a halt and another beginning

when; while

because, due to

changing repeatedly; over and over

Source: wiktionary.org