I saw a chrome experiment website recently.. while the experiment itself was amazing, there was a sort of an intro page to the website which had clouds moving in the background.. before the experiment even began.
Looking at the firebug, the website has just one cloud image (I could be wrong) and I thought it would be challenging to recreate it upto some extent, as I am learning jquery.
After several hours of trying different things, two things were apparent:
- I suck at jquery
- I probably need some guidance
Initially, I tried inserting random number of clouds at the bottom of screen and changing opacity and height+width through jquery animate.. but it turned out to be ridiculously slow..
Then, I thought, if I have a base layer of clouds in the background, I could just animate 2-3 clouds and make it look okay.. but the base layer looks worse..
Can you please give me some tips as to how to achieve this?
Thanks.
Got a 'Can't submit question because: dont just link to jsfiddle' error. :/
here's some of the code in jsfiddle:
<div>
<div class="inner one"></div>
<div class="inner two"></div>
<div>
Update
After exploring more of the site, I discovered that the whole site's code is open source.. and is available for anyone to download and contribute.
The code is available on google
The clouds animation is done via webGL; something that I am not familiar with. I am going to try and reproduce that effect in jquery - may not be as good, but I think the challenge is worth a try.
Meanwhile, if anyone understands or has an idea on how to simulate this in jquery, please let me know.
If I manage to duplicate it in jquery; I'll post that as an answer.