it flickered a little , looked around , and suddenly leapt up onto the edge of the trunk between calypso and bertram , where it performed a silly dance before backflipping off the side and blinking out in - mid-air .