In an action for annulment the court may, before or after judgment, give such direction for the custody, care, and education of the children of the marriage as may seem necessary or proper, and may at any time vacate and modify the same.
SDCL 25-3-11