Normally, the attack will stop the invisible condition, as written in the Hide action. So, from behind 3/4 cover, you make a ranged attack, and it ends. With this, as long as you end up behind 3/4 or total cover, it doesn't end. (But if you're just completely in darkness and they can't see you...