Adding the class 'parallax' to any element will enable parallax without using position absolute, or hard-coded numerical values. Use a value between 0 and 1 for the data-parallax-speed to control how fast/slow the image scrolls.
ParallaxSee the Pen by mprestonise (@mprestonise) on CodePen.