- 2022.12.24 Update: We made that the magnetic field line between the magnets connected smoothly.
The magnetic force acts between two magnetic objects. Gravity only pulls, but magnetic force also has the force to push, including pulling force.
When the different poles of the magnet are close, they pull each other, and when the same poles are close, they push each other.
You can also check the force's direction with the magnetic force line. In the different poles, a line is connected to each other. On the other hand, between the same poles, the lines are not connected to each other.
[…] The illustration above was created using the interactive JavaLab animation that is available at https://javalab.org/en/magnetic_force_en/ […]