top | item 4162519

Skrollr - parallax scrolling for the masses

177 points| parmgrewal | 13 years ago |prinzhorn.github.com | reply

46 comments

order
[+] simonsarris|13 years ago|reply
It's a neat demo of some very nice capabilities, but let us please not go back to the Flash era circa 2002 where designers tried to make their navigation as nauseating as possible.

Or put another way, its worth remembering that just because you can incorporate all of these effects does not mean you should. Some designs can be very disorienting to some people.

[+] patrickaljord|13 years ago|reply
Let us please not have this kind of comments on HN _every_ single time a css3 animation demo makes it to the front page...
[+] mobweb|13 years ago|reply
It would be kind of a boring demo if they just showed some very subtle and barely noticeable effects. ;)
[+] ericcholis|13 years ago|reply
"Just because you can use a hammer doesn't mean you can build a house"

You're right, the dreaded Flash sites of four years ago haunt me every day. However, I've seen some outstanding designs using these techniques. They were outstanding because they were done by professional interface designers. Put these tools in the right hands, and you'll get amazing results.

[+] Corun|13 years ago|reply
This is very cool and all, but I just see it as another example of a web tech demo that if rewritten for my 20 year old Super Nintendo would run with more frames per second. There appears to be no hope in the near future for smooth interaction on the web. WebGL can do the smooth web - But then it's not the web, it's just javascript+opengl.
[+] pharrington|13 years ago|reply
Your SNES would absolutely choke if it tried to output at higher resolution than 512x448 interlaced. Hell, plenty of games had considerable slowdown with less objects on screen than this demo had. Hyperbole doesn't get us anywhere.

Also, without profiling, it's hard to say if the slight choppiness is due to the library itself not being optimized, the browser rendering engine not being optimized, a combination of such, or other factors.

[+] ryanwhitney|13 years ago|reply
Feels like scrolling with weights on my fingers.
[+] some1else|13 years ago|reply
It seems that the main demo is a bit too busy for Chrome.

I had similar issues trying to spice up a presentation website with transitions and animations. The simpler examples[x] seem to be working much better.

In my experience, Firefox and Chrome tend to perform very flakey when CSS3 transitions/animations are in question. It's like a random performance profile is chosen every time the document loads. More often than not, the second time to load the transitions/animations work great, as if the browser performed some CSS JIT, but performance often drops again on consecutive loads.

I hope these features mature performance-wise, so we can start using them in meaningful ways (and also survive the 2001-style abominations that are bound to happen). I think it's sensible to use requestAnimationFrame[r] to determine if the animations aren't performing well, and disable them accordingly.

[x]: https://github.com/Prinzhorn/skrollr/tree/master/examples#ex...

[r]: https://developer.mozilla.org/en/DOM/window.requestAnimation...

[+] imperialWicket|13 years ago|reply
I think if this is used with appropriate limitations and caution, it can add to a site's presence in a positive way. All the UI concerns already listed are definitely valid, though - it's easy to take this too far.

There are quite a few decent parallax scripts/libs out there, but most of them rely on scrolling (like Skrollr) or cursor position tracking (github's 404 page). Am I the only one who likes to be able to page through parallax with buttons?

[+] duncanbojangles|13 years ago|reply
Brilliant demo! I did think this was going to be about old school side scrolling games, though, but I was not disappointed!
[+] graue|13 years ago|reply
Surely I can't be the only one who prefers PageUp/PageDown to flip through webpages? This breaks PageDown pretty badly.
[+] zoop|13 years ago|reply
both smooth scrolling and non smooth scrolling modes are very choppy for me. I think it has something to do with the large CSS3 transforms.

2.8 quad core, os x, chrome 19.0.1084.56

[+] darkstalker|13 years ago|reply
works fine on firefox 13, core2 1.8ghz, integrated intel gpu
[+] makmanalp|13 years ago|reply
I get whole screen "blink"s on OSX 10.7 chrome 19, especially in the beginning when boxes of text are moving in an out. Just when you think one is out, it flashes in for a second and disappears. Probably an off-by-1 or something?
[+] arjunnarayan|13 years ago|reply
It seems a little broken (and flickery) on Chrome in OS X. It worked great in Firefox and Safari.
[+] 5vforest|13 years ago|reply
I like it, but the demo doesn't really do it justice. I would slow everything down a bit (missed most of the transformations on my first pass, they happened way too quickly), and maybe work on styling a bit more.
[+] vivianhui|13 years ago|reply
I probably shouldn't have looked at this on an iPad...
[+] esbwhat|13 years ago|reply
All those parallax sites aren't as impressive if you have smooth scrolling disabled
[+] josscrowcroft|13 years ago|reply
A call for parallax scrolling sanity: "Oh God, My Eyes!!!"

Neat script though.

[+] taude|13 years ago|reply
One of the better JS libraries I've seen lately!
[+] jastr|13 years ago|reply
[+] derpmeister|13 years ago|reply
Skrollr is pretty smooth on my system but that page is terribly laggy and all pixely when you scroll. It's not even readable because everything just lumps together.