CSS Magic with Fixed Background-attachment

Background-attachment fixed example

I’m sure many of you are familiar with Eric Meyer’s Complexspiral demo, which was created to demonstrate the power of CSS and the background-attachment attribute. There are many other sites that use this concept to achieve a similar effect, providing added visual interest to the viewer. This can be seen in sites such as We Bleed Design, Westciv, Econsultancy, and even CSS Zen Garden. It has been used for years by Timpelen.

Ask the CSS Guy has come up with a short, easy to understand tutorial to help you achieve this effect. He also provides three nice examples using this same technique:

In the above examples no JavaScript was used at all, only CSS, that’s MAGIC! :-)

View the full article.




Post pobrano z: CSS Magic with Fixed Background-attachment

Dodaj komentarz