diff options
author | Marc Piechura <piechura@gmx.net> | 2022-10-18 17:07:19 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-18 09:07:19 -0600 |
commit | 5573532484d9b042a3b11fef1ca7b09cc623bd16 (patch) | |
tree | f98d124ec83ca4681bb95c086a0669643145439a | |
parent | 919079c7a4f35fc4ff64fa9cdd17cb82581dcf6d (diff) | |
download | htmx-5573532484d9b042a3b11fef1ca7b09cc623bd16.tar.gz htmx-5573532484d9b042a3b11fef1ca7b09cc623bd16.zip |
Added note about css overflow to infinite scroll example (#1073)
-rw-r--r-- | www/examples/infinite-scroll.md | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/www/examples/infinite-scroll.md b/www/examples/infinite-scroll.md index 0dd2cb97..9545e4b0 100644 --- a/www/examples/infinite-scroll.md +++ b/www/examples/infinite-scroll.md @@ -21,6 +21,8 @@ Let's focus on the final row (or the last element of your content): This last element contains a listener which, when scrolled into view, will trigger a request. The result is then appended after it. The last element of the results will itself contain the listener to load the *next* page of results, and so on. +> `revealed` - triggered when an element is scrolled into the viewport (also useful for lazy-loading). If you are using `overflow` in css like `overflow-y: scroll` you should use `intersect once` instead of `revealed`. + {% include demo_ui.html.liquid %} <script> |