This ability triggers and resolves during the declare attackers step. The creature will no longer have flying by the time blockers are declared.

Artwork
Loading artwork…
Gravity Well
Rise of the Eldrazi · #185 · EN
Nonfoil—Foil—
Card rules
Whenever a creature with flying attacks, it loses flying until end of turn.
Storms spread throughout Oran-Rief, ripping the skies with wind and rain. Airborne creatures sought shelter where they could.
Uncommon · Illustrated by Rob Alexander
Format legality
Commander Legal
Duel Legal
Legacy Legal
Modern Legal
Oathbreaker Legal
Penny Legal
PreDH Legal
Tlr Legal
Vintage Legal
Alchemy Not Legal
Brawl Not Legal
Competitive Brawl Not Legal
Future Not Legal
Gladiator Not Legal
Historic Not Legal
Old School Not Legal
Pauper Not Legal
Pauper Commander Not Legal
Pioneer Not Legal
Premodern Not Legal
Standard Not Legal
Standard Brawl Not Legal
Timeless Not Legal
Rulings
Published rulings from the downloaded Scryfall catalog. Source card record · Rules and interactions
After attackers are declared and any Gravity Well abilities have resolved, a spell or ability that grants flying to a creature will work normally. This includes other abilities that trigger “whenever [a creature] attacks” (such as the one Order of the Golden Cricket has).