We study the critical dynamics of vortices associated with dynamic disordering near the depinning transitions driven by dc force (dc current I) and vortex density (magnetic field B). Independent of the driving parameters, I and B, we observe the critical behavior of the depinning transitions, not only on the moving side, but also on the pinned side of the transition, which is the first convincing verification of the theoretical prediction. Relaxation times, $$\tau (I)$$
τ
(
I
)
and $$\tau (B)$$
τ
(
B
)
, to reach either the moving or pinned state, plotted against I and B, respectively, exhibit a power-law divergence at the depinning thresholds. The critical exponents of both transitions are, within errors, identical to each other, which are in agreement with the values expected for an absorbing phase transition in the two-dimensional directed-percolation universality class. With an increase in B under constant I, the depinning transition at low B is replaced by the repinning transition at high B in the peak-effect regime. We find a trend that the critical exponents in the peak-effect regime are slightly smaller than those in the low-B regime and the theoretical one, which is attributed to the slight difference in the depinning mechanism in the peak-effect regime.