Thought it was positive..

Okay so didn’t think I was pregnant. I took a test just as a what if kind of thing and the first lined showed up, not pink yet but as the pee went through a line formed. The second line popped up and then the first line disappeared. Looked as if it was going to be positive and then negative. Does anyone know what this means or why this happens?