dixonandmoe/rellax

Can Rellax be used to add parallax effect on background images inside divs?

MontyHu opened this issue · 3 comments

I didn't see an example of how to do this in the downloaded code, so wanted to ask here if Rellax is able to add the parallax effect to a background image of a div as it scrolls by in the viewport? If so, can anyone tell me how this would be done? I wasn't able to figure it out. Thanks!

Hello,

yes you can create a image parallax effect with rellax: Demo

In this issue it is described why this is not implemented by default (background-image): Issue

Hope this helps you.

Hi Raphael, thank you very much for the Codepen demonstrating how to do this with Rellax!

Thanks @MontyHu