At first, many thanks for sharing your wonderful animation framework!
I'm struggling in finding out he correct way to perform page updates in the context of a Nextjs/React project:
It seems like luge.lifecycle.refresh() is the way to do it – but it has a not-so-nice side effect on cursors (they jump back to 0/0 and the trails' svgs are not properly resetted/removed).
After a deeper look into your code, it seemed to me that emitting an update event would allow reveal and smoothscrolling effects to update properly while the cursor don't really need to be updated (a refresh() would do that though).
So all I would need is this simple line:
luge.emitter.emit("update")
At first, many thanks for sharing your wonderful animation framework!
I'm struggling in finding out he correct way to perform page updates in the context of a Nextjs/React project:
It seems like
luge.lifecycle.refresh()
is the way to do it – but it has a not-so-nice side effect on cursors (they jump back to 0/0 and the trails' svgs are not properly resetted/removed). After a deeper look into your code, it seemed to me that emitting anupdate
event would allow reveal and smoothscrolling effects to update properly while the cursor don't really need to be updated (arefresh()
would do that though).So all I would need is this simple line:
luge.emitter.emit("update")
I would expect that this should update the bounding of the new loaded page: https://github.com/AntoineW/luge/blob/ec40cf54f3ce4b1354ed960643759929d59b1a1d/src/js/luge/plugins/SmoothScroll.js#L100
Also should evoke a reveal "refresh": https://github.com/AntoineW/luge/blob/ec40cf54f3ce4b1354ed960643759929d59b1a1d/src/js/luge/plugins/Reveal.js#L253
Both doesn't seem to happen. Here's my hook – what am I doing wrong?
Thanks for your help.