Could you lay 2 progress bars on top of each other for the visual and then lay a repeating group on top of all that with the page numbers?
Maybe someone has already made this into a plugin? Otherwise, I would wonder: isn’t Discourse open source so couldn’t you just fork that code and build a plug-in?
Thank you so much for taking the time to think a bit about this problem. I like mental challenges too.
My actual use case is for a reference guide - when you scroll down the page, the repeating group on the left side changes color to show where you are on the page. This is shown in the Google docs gif below (notice the left side menu changes color when focus is over that part of the document)
Have you built anything similar to this with Bubble? Any new thoughts on how to achieve it? I can change the color of the left side text when clicking an element, but can’t automatically change it when scrolling or when the text is in focus.
So, I spent way too much time on this problem, but I think that I got the first major step worked out. I had to use some Javascript in order to get the entire page height and to calculate the X and Y coordinates for the cells in the repeating group. In a nutshell, I used javascript to get the start and end points for each cell and then used the scrolling position to update the cell.
The slider is made with a floating group, a shape, and a drag/drop group. Right now, it does not work if you drag it, but it moves with scrolling and updates according to cell. There is a popup in the editor that I used to do some calculations and then the workflows use that to determine how far to move the slider.
You can use the same concept to highlight text depending on scroll position, just have to get the same information and adjust according. Take a look below and let me know if you have any questions.