Live data from Hacker News

A grouped pure CSS parallax demo

keithclark.co.uk

1–10 of 43 posts

Re: A grouped pure CSS parallax demo

#3
Using this while developing my website. It works pretty well, although seems to have issues on various browsers (like Safari) where there is no scrolling.

The main issue I had was that smooth scrolling libraries (for jumping to various places on the same page) didn't work until I referenced the element to scroll as a specific div (that contained all of my parallax) instead of "body" or "html, body" like suggested online.

Overall, I like the flexibility and the ability to inspect the layers using simple translations and rotations.

Re: A grouped pure CSS parallax demo

#4
post #2

Unfortunately, on iOS the scrolling feels very fake with no native easing. Does it have some sort of javascript hijacking scroll/swipe events?

There's no JavaScript on that page outside of Google Analytics. You're right though, it feels pretty terrible without the native scrolling momentum.

Re: A grouped pure CSS parallax demo

#8
post #2

Unfortunately, on iOS the scrolling feels very fake with no native easing. Does it have some sort of javascript hijacking scroll/swipe events?

Try adding -webkit-overflow-scrolling: touch; to enable elastic/momentum scrolling on the .parallax div.

EDIT: Nevermind, just tried it in the simulator and it seems to break everything. Although it is smooth... :)

Re: A grouped pure CSS parallax demo

#10
post #3

Using this while developing my website. It works pretty well, although seems to have issues on various browsers (like Safari) where there is no scrolling. The main issue I had was that smooth scrolling libraries (for jumping to various places on the same page) didn't work until I referenced the element to scroll as a specific div (that contained all of my parallax) instead of "body" or "html, body" like suggested onl…

Works fine in Safari here.
Post reply on HN