This fiddle is almost what I\'m looking for, I got it from MDN. The only thing missing is that I want to make it smoother. Is there a way to do that without using jQuery or any
This could probably be optimised a fair bit, but here is a basic example of how you could do it using setInterval and clearInterval
setInterval
clearInterval
Fiddle
Update
Here is another example of it wrapped into a function instead, bit easier to tweak the speed etc.