Creating a CSS-Only Reading Indicator

preview_player
Показать описание
You probably have seen those small bars that indicate how far within the article or page you've read. They grow as you scroll down the page. But did you know that they can be developed using only CSS? That's the magic of scroll-driven animations!

---

Music credit: Smile, by Bensound.
Рекомендации по теме
Комментарии
Автор

for this sort of thing i would set the height to a fixed unit, having it set using "rem" will cause the height to change if the user changes their device font size which

GashyDev
Автор

It would be great if you can make short JS snippets for effects and animations. Btw, great content and the length of video is much appreciated

bardhokajvazi
Автор

Would it be possible to point to the article itself instead of root for the scroll? If we have a comment section, it should not be included in the progress of the article, for example

JoozFerreira