You can fly in Minecraft by jumping through a pillar of water while sprinting and the swimming animation will continue in the air
The glitch involves sprinting and jumping into a pillar of water and quickly swimming out of it to keep the animation and fly.