It is a motorized embodiment ofYellow slider is fixed to the black belt of two pink pulleys. Input: blue motor giving the slider linear reciprocating motion.
The yellow panel is fixed to yellow slider that moves along blue runway.
The yellow slider has a pin that moves along a slot of stationary plate (in transparent brown).
At left end of the yellow panel stroke the interaction between yellow rack and the stationary grey gear makes the blue runway, to which blue glass panel is fixed, turn 90 deg.
For easy motion of the mechanism make the gear as large as possible.