This is from a piece of code I hacked up about 9 months ago. It was pretty fun, but kind of a time waster. Luckily, my employer also got a kick out of it when they saw it. We didn’t use it in production, until the site was at the end of it’s lifespan & even then, you could only see it through an easter egg in the site.
<script type="text/javascript">
$(document).ready(function(){
$('body').css('background-position', '0px 0px');
$('body').animate({
backgroundPosition: '-100% 0'
}, 100000, 'linear', function() {
animateClouds();
});
function animateClouds(self){
$('body').css('background-position', '0px 0px');
$('body').animate({
backgroundPosition: '-100% 0'
}, 100000, 'linear', function() {
animateClouds(self);
});
}
}); </script>