Dynamic behavior of optically induced superconducting weak links