Lets say that both my opponent and I both have a 1/1 white flying spirit. Now lets say I declare my spirit as an attacker, and my opponent declares their spirit as a blocker. After they declare their spirit as a blocker I cast Turn to Frog, which causes their spirit to lose all abilities and become a 1/1 blue frog until end of turn. What happens?
Your creature is still blocked. The blue frog will still deal damage.
If you cast Turn to Frog after attackers are declared, but before blockers are declared, your spirit can't be blocked by that creature.
The check for evasion ability blocking restrictions is made before blockers are declared, but is not made again. If the attacker gains or loses evasion abilities it doesn't matter. It's not explicitly mentioned in that rule, but it logically follows that if the defender gains or loses the ability to block flying creatures after the block is declared, it doesn't matter.