Mimicking Overwatch health bar system

Is it in any way possible to use the child boxes as progress bars and link them so that when one progress bar hits 0 the next one takes effect?