I recently designed a magnetic clutch for a school project where i made a submarine rubber ducky. One of the things i designed for that project was a magnetic clutch for the movement of the submarine in water. This way the motors inside the submarine would not come in contact with water. And now i decided to use that concept and make a small demonstartion/fidget tool/toy for everyone to enjoy and learn.
To work properly, the poles of the magnets should corrospond to the third image.
I used these magnets to create this model (5x10mm)