Why Are Pith Balls Initially Attracted To A Charged Rod And Later Repelled By The Same Rod?

Why Are Pith Balls Initially Attracted To A Charged Rod And Later Repelled By The Same Rod? Since like charges repel, the pith balls repel one another. If an ebonite rod is rubbed with fur, the rod rubs some electrons off the fur. The rod thus becomes negatively charged and attracts the positively-charged pith balls.