Do you understand how an electric motor works? It uses electromagets and sometimes permanaent magnets to provide the force. But the magnets must be turned on and off in synchronization with the movement, otherwise, when they hit the closest approach they will just stop. You seem to want to...