The barrel is shown transparent so the piston and its seals are visible through the full stroke.
A cylinder assembly modelled in Onshape. I built the parts, combined them into an assembly with mates, and animated the piston and rod through the full stroke.