This trick is easiest to perform on yellow flipping blocks or random item blocks as you can hit them multiple times, but I have done this on any block you can hit at least once. Try it everywhere and see what kind of results you can get!
Note: Results can vary. If a new block is generated it can be placed in an unexpected location. Usually it's one space to the left or above the initial block, but other times it can appear diagonally, below, or a whole block away. Sometimes two new blocks appear as well. It's also possible that the new blocks will appear in a way that squishes Mario as if scrolled off a screen, so don't be surprised if you die a time or two.