An application of gear drive. Friction in revolute joints must be large enough, otherwise the mechanism will move from open or closed positions due to the gr.
Add this to the list of things we never knew existed but now desperately need: The Evolution Door, a "flip-panel" invention by Austrian designer Klemens Torggler.