Generalize parallax effect