It's a cool concept, though you'd have to trigger the various train animations according to which unit is being trained and then stop them manually. But, again, it's a badass idea.
EDIT: You may also edit some spells with gold and lumber cost and use them to train the units, thus setting the animations in the spells, but it does seem, like, overkill for that.