Skip to content

u/hailpixel

In this archive from Sep 2008 to Jan 2019

6
posts
46
comments
2
media
412
score

Top posts

Top comments

You're looking at a series of background images being moved (using the background-position CSS2 property) with javascript.

Basically there is an event listener attached to window.onScroll. When the user scrolls, the background image of each section (and in some cases, a bonus background image) is moved slightly slower than the scrolling action to create the parallax effect. Nice, simple and elegant.

The only HTML5 thing here though is the HTML markup. The bulk of the effect is plain old javascript and CSS.

edit: spelling

27 points

Check this image out: http://i.imgur.com/iXrfO.jpg I've transcribed the notes below.

  1. Pixel Hangover

  2. Since every other element is rounded, don't break the motif without good measure. This is subjective though, so if you like it, roll with it.

  3. You need to anchor the tabs to the content frame. Add a row of orange across the top to connect the active tab to the frame.

  4. Justified text is usually a bad idea for body copy. Try it left aligned and see if you can rag it in a clever way.

  5. Line it up. The spacing for these elements is way off.

  6. Once again, your padding on your text and image items is a little sloppy. Slap a grid down and tighten it up.

Style wise, a good first draft. Hope this helps!

21 points

Subreddits

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.