How does Magnetic Levitation Work?

Magnetic levitation works on the principle that like poles of magnets repel each other. Take two magnets in your hands. If turned one way, they attract. If turned the other, they repel. That’s the basics of how it works.