- animation act weird when pressing play twice
- function moveRect1()
- {
- // Reverse.uppfÖrande
- if( xEnd == 150 )
- xEnd = 50;
- else
- xEnd = 150;
- // x heter x på rektanglar. Vänstra övre hörnet.
- rect1.animate( {x: xEnd}, // det/de attribut som ska animeras, och till vilket värde.
- 1000, // tid
- "Sine", // Ease funktion
- function (){ moveRect1(); } //
- ); // end animation
- }