Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Can someone explain how they managed to do this? I've never seen anything like it!

Perhaps all the text is rendered via JS and re-rendering in an infinite loop where the CSS switches the padding of the div surrounding the text back and forth by ~5px at each point in the loop?



It could definitely be in an infinite loop if it's running a webgl context.

Many (including myself) have tied into window.requestAnimationFrame(...) recursively forever.

This lets the page breathe, but always call back into your main game loop to update the webgl render context/canvas.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: