Skip to content

Commit 6680a60

Browse files
committed
chore: update README.md
1 parent e8746dd commit 6680a60

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44

55
FloatSidebar.js is a lightweight (2kb gzipped), zero-dependency JavaScript library that creates sticky, floating sidebars. It keeps the sidebar visible in the viewport by dynamically sticking it to the top or bottom based on scroll direction and sidebar height.
66

7-
1. Tall Sidebars (taller than the viewport), scrolls with the content, sticking to the bottom when scrolling down and to the top when scrolling up. _(see the left sidebar in the video)_.
8-
2. Short Sidebars (shorter than the viewport): Stays fixed at the top during scrolling. _(see the right sidebar in the video)_.
7+
- **When the sidebar is taller than the viewport**, it scrolls with the content, sticking to the bottom when scrolling down and to the top when scrolling up. _(see left sidebar in the video)_.
8+
- **When the sidebar is shorter than the viewport**: it stays fixed at the top during scrolling (right sidebar in the video).
99

1010
https://user-images.githubusercontent.com/5039436/164990489-0424b5ab-c231-4f5c-bc1b-fc3f9594e347.mov
1111

0 commit comments

Comments
 (0)