Hmmmm ...
Gravity isn't caused by spinning electrons, it is caused by
mass. An object with a higher mass has a stronger gravitational field.
Electrons do have a property called 'spin', but that is unrelated to gravity.
For electromagnetism, you can have a + charge or a - charge. Like charges repel one another and opposites attract.
Gravity, on the other hand, always attracts.
Newton's law of gravity says:
Where G is the gravitational constant, m1 and m2 are the masses of the objects involved, and r is the distance.
You can get a repulsive force if one of the masses is negative.