Dynamic control of DNA condensation