Fixed Background Effect by Cody House

Monday 13th, Apr, 2015 |


Javascript - CSS2/CSS3 CodyHouse shows us a simple template that takes advantage of the background-attachment CSS property to create a fixed background effect. Sometimes you don’t need crazy javascript code to come up with creative and nice looking effects. Today’s snippet is all about a single CSS property: background-attachment. You can set the background to be fixed within the viewport (background-attachment: fixed;). We’ve used this already in our alternate fixed & scroll backgrounds template.

Demo

Source