As when we are in bright light the size of pupil contracts and when we enter a dark room our pupil take time to come on original size and increase so that we are able to see in dim light. So due to the change in size of pupil we feel blinded for a short while entering a dark room when coming from a bright light