From glasses to sunglasses in the blink of an eye