AntoineW/luge

Parallax not working after update

Closed this issue · 1 comments

Hi! First of all, I love this library, it's dead simple to use and so smooth.
I have some items with the data-lg-parallax attribute, and in the footer of my website I have a details html item with references which are expanded on click, so I'm running a luge.emitter.emit("update"); whenever that details is expanded.
However, once I run the update once, the items with parallax no longer modify their position.
The container of the website has a data-lg-smooth which has no issues and keeps updating properly the position on scroll.
This is the website I'm working on(the coloured spheres at the top right are the parallax items): https://clientes.domo.com.ar/astrazeneca/camcar/nqi/

Thanks for your help.

Oh nevermind, I modified luge.emitter.emit("update"); for luge.emitter.emit("resize"); and it's working now.