A Matter of Dynamics

Most ion channels are very selective about the ions, which may or may not pass through them. They may be conductive for potassium ions and non-conductive for sodium ions or vice versa. However, a number of ion channels allows for the efficient passage of both kinds of ions. How do these channel proteins accomplish this?