Barrel Cam Mechanism of Snap Motion

Input: orange shaft of barrel cam rotating continuously.
Blue slider moves up thanks to the cam and moves down very fast under action of green spring.
The blue slider has a short dwell at its lowest position.