In fact, this is not a magical thing, it's just a simple electromagnetic reaction. The two sides are equivalent to electromagnetic coils, which are used in transformers. They produce a magnetic field after connection, and then affect the coating on top. In fact, the object itself is coated in this way.