Another way... using instead of below, a single wide cylinder as cam...
----> https://www.amazon.com/Aluminum-Platforms-Scissor-Mechanism-Lab-lifting/dp/B01CKXR0HK
Some mechanisms canibalizable from junk car seats, sunroofs, headlight doors, windows...