It was on this weird intersection where the sidewalk crossing is hidden by some trees, so the cars that are behind you, turning right, can't really see the crossing until they're on top of it.
I waited for the light to change, and it did (the cars in the lane behind me started to go), but I couldn't see if the turning right lane had a green light or not (I was stupid and didn't check to see if I could see the traffic light from my position by the crosswalk, like normal. If a situation happens like this where I can't see the traffic light, I usually wait by the light to be able to see if it's green or not). The crosswalk sign was red for me, too.
So I waited to see if any turning cars were coming from behind (visibility sucks because of the trees hiding the road like I said, and because the intersection is right after a hill - so the cars are coming uphill and then right as they make it over, they turn right). A few cars turned right, but the crossing sign didn't turn green for me yet.
Then there weren't any cars at all in the lane anymore. I assumed it was safe to go and that the green light was still on. Halfway through me crossing the intersection, the cars on my right (waiting on the light) started to go. I quickly realized what happened but I was already moving and couldn't really stop and turn around. 2 of the three cars stopped for me, and the middle lane was empty. Then a car came driving up on the middle lane and I barely made it across before it passed me. If I was a second slower it definitely would have hit me.
I felt terrible about it because I normally wait at every red light and hate red light jumpers. I was stupid and didn't make sure that the light was green before crossing - I just assumed. The broken crosswalk sign didn't help at all. The adrenaline kicked in and I didn't really comprehend that I almost got hit by a car until a few blocks down the road. It's a lesson, I guess.