AntoineW / luge

Luge
301 stars 11 forks source link

Parallax not working after update #23

Closed franimpo closed 2 years ago

franimpo commented 2 years ago

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.

franimpo commented 2 years ago

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