Levitation causes the affected entity to float upward. This does not affect swimming or flying.
An affected entity does not take fall damage until the effect wears off, after which the entity falls and takes damage as usual from falling.
Levitation has no effect on players riding entities and players with elytras activated. In Java Edition, it also has no effect on entities that are in water or lava.[1][2]
Mobs tied with balloons[edu & BE only] exhibit behavior similar to if they had a high level of Levitation. However, this mechanic does not use the Levitation effect.
The source of the effects is irrelevant for the purposes of this advancement. Other status effects may be applied to the player, but are ignored for this advancement.
This is a hidden advancement, meaning that it can be viewed by the player only after completing it, regardless of if its child advancement(s), if any, have been completed.