How to do the mation in the Solidork Sensor animation؟

If the damper is opened and closed by the jack, it will report an error when it snaps open