Critical dynamics of vortices near the second-order transition and quantum fluctuations