mastodon.gamedev.place is one of the many independent Mastodon servers you can use to participate in the fediverse.
Mastodon server focused on game development and related topics.

Server stats:

5.1K
active users

wizards: I need your help. I want to make a scroll indicator bar for my blog which show how much of the article is left to read, and I want to do so without without Javascript, like here:

css-tricks.com/books/greatest-

The problem with that trick linked above is that the progress bar is rendered behind the text and images of the post content. Do you know of any tricks to help bring the progress bar into the foreground while keeping the rest working as intended?

CSS-TricksScroll Indicator - CSS-TricksThere is a way you can build a progress bar displaying how far a user has scrolled down the page (like a "reading progress indicator") without any JavaScript at all. Just some clever usage of gradients and positioning.

I think I can make it work if there was a way to clip part of the post's div in screen space. The clip-path property only works relative to the position of element, what I'd need is to define a fixed-position region and clip the post there. Can't find a way to do it or even anyone mentioning something like that, so maybe I'm using the wrong terms.

@tracefree probably way above my paygrade, but it might be easier to see the issue if you try to implement it on your blog and post a link so we can fiddle with the css in the browser?