Given a kinematic assembly, you can trigger the relative motion of related sub-elements upon kinematics motion using either motion groups or mechanisms.
Grouping Concepts Grouping with a Motion Group Grouping with a Mechanism