the primary causes for attraction is proximity
This is what is behind "office hot". You work with someone 40+ hrs a week who is even average looking and they start to grow on you. You can definitely be attracted to briefly seeing someone too though. I've seen woman briefly that have left me flustered for the rest day.