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

Sidenote, but I'm taking a look at how googlers made this website. Reason for this is that whenever they create a webpage I can see how they've achieved an effect that people are blogging how to do efficiently. In this case the effect is the background parallax.

So... I see that they are doing this on their ideas page [1] with the following code on their background image :

    position: fixed; transform: translate3d(0px, -402px, 0px); -webkit-transform: translate3d(0px, -402px, 0px);
Difference from any other methods is they use position fixed and it actually looks smooth on my old mac.


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

Search: