I highly doubt those were created practically. The effects were a bit different in the two videos you posted, but both appear to have been done in post. FCPX has a built-in transition that looks a bit like the second video, and the first video looks like the effect could have been created easily.