In the code strongly did not penetrate, hit at random:
Perhaps you are talking about singe (easing).
If we imagine time from the start animation to the end as the interval from 0 to 1, and the initial position of the object (or other property) and end also as the interval from 0 to 1, the Ising function is a function that gives the correspondence of each point of the first interval of the second.
\r
In the simplest case, the Ising function returns the default value unchanged (for the start time return 0 end-1). In this case, the object moves strictly linearly without accelerations and decelerations, because the movement seems Jumpy and unnatural.
\r
To give the animation a smoother appearance, you need to simulate acceleration. In JQuery the function of Ising default has the form (simplified):
\r
swing function(t) { return (-Math.cos(p*Math.PI)/2) + 0.5; }
Ie uses a sinusoidal dependence.
\r
Here are examples of how other functions of the Ising connected third-party plugin and not part of jquery:
\r
www.lemonsanver.com/jQuery/easingAnimationPlugin.html\r
In order to use the same method of working where whatsoever, it is necessary to organize the process in the following way:
1) At the start of the animation is known for its duration and recorded time of the start of the animation
2) also know the final value of the animated parameter (or several) is written to their initial value.
3) Periodically call the function animation (timer or cycle). From the current time, start time of the animation and the duration she finds the time t is a number from 0 to 1.
4) t is passed to the function Ising
5) From the obtained values and data on the initial and final values of the parameters calculated current value.
6) Paragraph 3) is repeated until the animation time expires.