dixonandmoe / rellax

Lightweight, vanilla javascript parallax library
https://dixonandmoe.com/rellax/
MIT License
7.06k stars 878 forks source link

Start on element top #165

Open ande4559 opened 5 years ago

ande4559 commented 5 years ago

Hello

Is there a way of making the rellax start and animate from a top of an element? Right now i have some elements i want to parallax when my footer is visible, and then start the animation from there.

93lucasp commented 3 years ago

Yes I was looking for the same things.

On long pages I have to put the effect on every element to avoid issues.

Would be better if the effect could start only when the scroll intersects the element.

In this way it's more usable and scalable for sure and everyone can use it just when he wants.