I found a bug in the newest snapshot, (18w08b) because if you fly above any water and you sprint, you won't get the swimming animation but instead you'll get sprint particles, and if you stop sprinting it will keep going. I hope I've helped you with this!
Duplicate of MC-125188