I made this fidget when I was bored and it worked well.
You need five 6mm x 3mm round neodymium magnets.
(Make sure one bar has only south facing magnets and the other only has north facing magnets.)
The author hasn't provided the model origin yet.