If the top card of your library changes during the process of casting a spell or activating an ability, the new top card won't be revealed until the process of casting the spell or activating the ability ends (all targets are chosen, all costs are paid, and so on).