Grow your CSS skills. Land your dream job.

#9: Starry Night: 3D Background with the Parallax Effect

Using three layers of alpha transparent PNG files, we can can create a pseudo 3-dimensional looking background for a web page. This screencast covers how to do that from start to finish. Since Internet Explorer 6 and under do not support alpha transparency in PNG's, this screencast also covers how to create a warning message that will display only in those browsers.

Links from video:

Comments

  1. Permalink to comment#

    Who is normally resizing the browser? It would be nice if that parallax effect come in place while scrolling…

    • Permalink to comment#

      We have to see this in the light of the moment this video was set up. couple of years ago ;) (he’s even talking about ie5 n 6 while nowadays we are even discarding IE8 ;) ) nonetheless, was a nice refresh of some tricks here. parallax has found it’s place nowadays in way fancier forms.

Leave a Comment

Posting Code

Markdown is supported in the comment area, so you can write inline code in backticks like `this` or multiline blocks of code in in triple backtick fences like ```this```. You don't need to escape code in backticks, Markdown does that for you.

Sadly, it's kind of broken. WordPress only accepts a subset of HTML in comments, which makes sense, because certainly some HTML can't be allowed, like <script> tags. But this stripping happens before the comment is processed by Markdown (via Jetpack). It seems to me that would be reversed, because after Markdown processes code in backticks, it's escaped, thus safe. If you think you can fix this issue, get in touch!

If you need to make sure the code (typically HTML) you post absolutely posts correctly, escape it and put it within <pre><code> tags.

Current ye@r *

*May or may not contain any actual "CSS" or "Tricks".