diff --git a/src/pat/scroll-box/documentation.md b/src/pat/scroll-box/documentation.md index a7a76ccbe..ee056f05b 100644 --- a/src/pat/scroll-box/documentation.md +++ b/src/pat/scroll-box/documentation.md @@ -8,7 +8,9 @@ Ho(horizontal scrolling is not yet supported. The classes are: -- `scroll-up`: when scrolling upwards, -- `scroll-down`: when scrolling downwards, +- `scroll-up`: when scrolling upwards - the class is kept even after scrolling has stopped, +- `scroll-down`: when scrolling downwards - the class is kept even after scrolling has stopped, +- `scrolling-up`: when scrolling upwards - this class is removed after scrolling has stopped, +- `scrolling-down`: when scrolling downwards - this class is removed after scrolling has stopped, - `scroll-position-top`: when the scrolling container is scrolled to the top, - `scroll-position-bottom`: when the scrolling container is scrolled to the bottom. diff --git a/src/pat/scroll-box/index.html b/src/pat/scroll-box/index.html index a9a8b545c..47261b494 100644 --- a/src/pat/scroll-box/index.html +++ b/src/pat/scroll-box/index.html @@ -15,6 +15,15 @@ height: 200vh; } + .container { + /** + * trick to espatblish a relative containing block + * for position:fixed + * See: https://developer.mozilla.org/en-US/docs/Web/CSS/position#fixed + */ + transform: rotate(0); + } + body .pat-scroll-box { overflow-y: auto; border: 1px solid black; @@ -49,8 +58,10 @@
+