Replies: 2 comments 1 reply
-
I've just implement a chat system (styled similarly to Facebook messenger's web app), and have done this successfully with the existing HTMX API. Using "hx-trigger" / "intersect once" was key to this, in a reversed flow flex box so I could even continue using my existing infinite scrolling code used elsewhere in the web app. |
Beta Was this translation helpful? Give feedback.
1 reply
-
I was able to do this using a few lines of javascript. It ended up easier to do it this way. I guess one may need to fall back on javascript anyway. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I went through the documented example for Infinite Scroll using htmx.
Can it be adapted for reverse infinite scrolling?
i.e. show more recent set of messages and allow scrolling up.
A jQuery based solution is provided here:
https://stackoverflow.com/questions/40305028/reverse-infinity-scroll
Can this be duplicated using htmx?
Beta Was this translation helpful? Give feedback.
All reactions