If a smooth curve embedded in the plane is deformed allowing self-intersections but remaining smooth, then there is a natural integral invariant, the rotation number, which prevents eversion of a circle (deformation of the oriented circle into another circle with an opposite orientation). For two-dimensional surfaces smoothly embedded in a similar invariant of deformations exists, yet this invariant does not preclude eversion of the sphere inside out.
The possibility of such deformation was discovered bt S. Smale in 1958. Relatively recently W. Thurston invented a general algorithm of smoothening, which yields an explicit sphere eversion. All these spectacular things are discussed on the level accessible to high school students in the most fascinating animation (21 min.) discovered on the web by Dmitry Novikov (thanks!). A much shorter animation (mere 22 sec.) does not easily reveal the mistery, so the longer one is really worth its time!