Vurti vsichki kartinki


var images = document.getElementsByTagName("img");
var angle=10;
var rotate = "rotate(angledeg)";
var interval = setInterval(
function()
{
var i=0;
var n="0deg";

while(i<images.length)
{
if ((i+1)==images.length)
{
angle+=10;
}
n = rotate.replace("angle",angle.toString());
images[i].style.webkitTransform = n;
i++;
}
},50);

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s