You first have to be stationary. Hold down the B button. At first you will simply do a wheelie, but then you will start bouncing on the rear tire. You can then move while bouncing, allowing you to go up and down the round stones on certain ledges.