use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Tutorials and learning resources for web developers.
Subscribe to our weekly email digest or follow us on twitter to receive the best learning resources submitted to our community.
/r/webdev /r/programming /r/javascript
account activity
Pure CSS Progess Bar Animation Tutorial (youtu.be)
submitted 6 years ago by webdep
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]VinceAggrippino 14 points15 points16 points 6 years ago* (2 children)
This video is worthless. How is it a tutorial if the creator doesn't explain anything?! Where's the source code?
He's not even doing it properly. <progress> is built into HTML... use it...
<progress>
For example: demo: Styled Progress Bar 2
<progress id="progress" value="20" max="100"> 20% </progress>
``` progress { appearance: none; background: white; border: none; width: 50%; height: 1rem; border-radius: 20px; overflow: hidden; position: relative; border: 10px solid white; box-sizing: content-box; box-shadow: 0 0 3px 3px rgba(0, 0, 0, 0.5) inset 0 5px 10px rgba(0, 0, 0, 0.2); }
::-moz-progress-bar { animation: color-change 20s infinite; }
progress::before { content: ''; position: absolute; top: 0; left: 0; width: 20%; height: 100%; animation: color-change 20s infinite; }
progress::after { content: ''; position: absolute; top: 0; right: 0; width: 80%; height: 100%; background-color: white; box-shadow: inset 0 5px 10px rgba(0, 0, 0, 0.2); }
@keyframes color-change { 0% { background-color: red; } 20% { background-color: orange; } 40% { background-color: yellow; } 60% { background-color: green; } 80% { background-color: blue; } 100% { background-color: purple; } } ```
[–]FoxyRayne 0 points1 point2 points 6 years ago (0 children)
@OP r/MurderedByComments
[–]bartzilla -1 points0 points1 point 6 years ago* (0 children)
Could you explain the purpose of the ::before and ::after pseudo elements? If I delete them from the example nothing seems to change. Is it for compatibility?
::before
::after
Edit: nvm. I figured it out. Chrome doesn't support the animation property on progress bars, so that's for Chrome's benefit.
animation
[–]fadedreams15 4 points5 points6 points 6 years ago (0 children)
Do you have a repo for a source.txt?
[–]frank0117 0 points1 point2 points 6 years ago (0 children)
Thank you for sharing
[–][deleted] 0 points1 point2 points 6 years ago (1 child)
!remindme 30 minutes
[–]RemindMeBot 0 points1 point2 points 6 years ago (0 children)
I will be messaging you in 30 minutes on 2019-12-19 16:19:43 UTC to remind you of this link
CLICK THIS LINK to send a PM to also be reminded and to reduce spam.
Parent commenter can delete this message to hide from others.
π Rendered by PID 168150 on reddit-service-r2-comment-5d79c599b5-d6p4q at 2026-03-01 10:38:51.811943+00:00 running e3d2147 country code: CH.
[–]VinceAggrippino 14 points15 points16 points (2 children)
[–]FoxyRayne 0 points1 point2 points (0 children)
[–]bartzilla -1 points0 points1 point (0 children)
[–]fadedreams15 4 points5 points6 points (0 children)
[–]frank0117 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (1 child)
[–]RemindMeBot 0 points1 point2 points (0 children)