3D Javascript Effect
Posted on
Here’s a little Javascript effect that will give your site a subtle 3D look by simulating a parallax between the content of your site and the background. Try out the effect now by scrolling up and down on my site. CSS only gives us two choices for background-attachment: scroll (default) and fixed. This script is sort of halfway between the two by making the background scroll half as fast as the content. $(function(){ $("body").css("backgroundAttachment", "fixed"); $(window).scroll(funct ... read on