Physical animation
The physical animation here says that the animation effect of the graphic is similar to the physical effect in real life, such as the effect of gravity.
In fact, the realization of animation is to split an action into a continuous interval to complete, visual feeling is moving.
For example, to move a diagram from the left to the right, set the total distance of 100, every 1/40 seconds to move to 1, the effect will have.
This time interval and distance interval set how much is the best, esthetics has some definition, here does not discuss.
An example of a drag and tear window cloth
Three files
tearcloth.html; Tearcloth.css; Tearcloth.js
Tearcloth.html
<!--Add by oscar999-->
<! DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 transitional//en" >
<HTML>
<HEAD>
<TITLE> New Document </TITLE>
<meta name= "Author" content= "oscar999" > <link rel= "stylesheet" type= "
Text/css "href=" tearcloth.css " />
</HEAD>
<BODY>
<canvas id =" C "> </ canvas>
<center id= "info" >
<center id= "Top" >
<a id= "Close" href= "" >close</a >
</center>
<p>
<br>
-Tear The cloth with your mouse.<br><br> -Right click and drag to cut the
cloth<br><br>
-Reduce physics_accuracy if it ' s laggy.<br>& lt;br>
</p>
</center>
<script src= "tearcloth.js" ></script>
</ Body>
</HTML>