Parallax effect function. Used to learn how to construct a jQuery function.