Add raining bitcoin to a website
Full repo can be found at https://github.com/Onitz/make-it-chain
the following code can be modified to switch up the animation settings
function animate()
{
mesh[0].rotation.x+=0.1;
mesh[2].rotation.z+=0.1;
mesh[2].rotation.y+=0.1;
mesh[1].rotation.z+=.2;
requestAnimationFrame(animate);
renderer.render(scene,camera);
mesh.forEach(m=>{
m.position.y -= fallspeed;
if(m.position.y < -bound){
m.position.y = bound;
}
});
}
Texture & model credit goes to pkellz (see initial fork)