WeWriteApp / WeWrite

Every page is a fundraiser on WeWrite, your personal social wiki
https://www.getwewrite.app/pages
GNU General Public License v3.0
1 stars 0 forks source link

Hide Pledge Bar while scrolling down #102

Open sirjamesgray opened 1 month ago

sirjamesgray commented 1 month ago

we'll also collapse the title header when scrolling down #128

https://github.com/user-attachments/assets/88c2a83d-d681-43b8-a787-61c5adce981a

asseph commented 1 month ago

I changed it like this. Whenever the user scrolls up and down, the pledge bar hides, but when they stop scrolling, it appears after 1 second.

sirjamesgray commented 1 month ago

I think we should go with the original implementation instead. Appearing / disappearing doesn't really communicate a logical continuity.

Plus substack uses this pattern where the footer animates out of sight on scroll down (reading intent) and immediately slides back into view upon scroll-up. (scrolling up is the end of the reading intent, whereas the implementation from the QA push interrupts the user again while they're presumably still reading)

We can use Framer Motion if that makes things easier to implement https://www.framer.com/motion/

sirjamesgray commented 1 month ago

plus another problem with the fade-in fade-out approach is that the background blur doesn't animate so it snaps awkwardly from translucent to transparent

https://github.com/user-attachments/assets/b60f8940-4d7b-4722-aa60-f4d5a79b3255