The Mechanism that underlies the Resting potential present in all cells

Whats the mechanism that underlies the resting potential present in all cells, including all types of the cells that make up human and animal cells. please provide a small diagram for refrence.