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)
Congratulations @ne10! You received a personal award!
You can view your badges on your Steem Board and compare to others on the Steem Ranking
Do not miss the last post from @steemitboard:
Vote for @Steemitboard as a witness to get one more award and increased upvotes!
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Congratulations @ne10! You received a personal award!
Click here to view your Board
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit