This effect can be done in CSS3 alone, but it's a long process and must be done using CSS3 transitions/animations via keyframes. Which most of the common browsers support.
Please do not rely on my code though as it's very important when getting into programming to learn and understand the terminology that way you can read and write your own scripts and make whatever it is you want to make a while lot easier and faster; otherwise you'll have a very hard time.
hmm i Understand... Yea while searching i got this that It can be done through CSS... But I just want that code for fun.. Not for any special purpose ;) ... And yea.. I am learning JS.. from codeacademy and have reached on Loops.. Will again continue as i will get time.... Then I will fully understand that How that script works... BTW Thank you very much ;) loove;