Need a usable design for a foldable dog wheelchair

Job ID: 30942595

Budget: $30 – $250 USD

I am looking to create a dog wheelchair that would allow him to lie down
So the general principle is simple, when the dog goes backward, the cart should collapse and unfold as soon as the dog stand up and goes forward
(see video https://drive.google.com/file/d/1kO-6zQENRxoIfgiM1aNzSSsBNwpNQwZB/view?usp=sharing)

I need a basic mechanism that would be easy to implement in real life using existing material or 3D printed parts
Please check the small video to get a general idea
The result should be deliver as a simple CAD video with the general mechanism (check sample)
I attached an existing wheelchair as example
To be more clear, I don't need 3D design of each part or anything complicated, I need the general mechanism principle