html - Indeterminate progress bar CSS -
i wondering how make animation html progress tag , progress bar in indeterminate state. in code, have 1 keyframe animation, 1 div, 1 progress bar (created using progress tag). put keyframe animation on both div , progress bar show works on div, not progress bar... why this? i've gathered google , css-tricks website (from i've seen) indeterminate state difficult animate. i've tried progress
(it mentioned should try in random post read last night) instead of progress:not([value])
still no luck. reason i'm needing use state on creating own progress bar js or css once figure out this, i'm going modifying existing 1 that's created on webpage it's atom theme , i've read posts on atom. posts i've read this, none of solutions worked me.
here's codepen: https://codepen.io/anon/pen/nvpxmy
here's css:
progress:not([value]) { -webkit-appearance: none; appearance: none; height: 10px; } progress:not([value])::-webkit-progress-bar { background-image: -webkit-linear-gradient(left, magenta, purple); -webkit-animation: animate-stripes 5s linear infinite; animation: animate-stripes 5s linear infinite; } .box { height: 10px; width: 200px; background-image: -webkit-linear-gradient(left, magenta, purple); -webkit-animation: animate-stripes 5s linear infinite; animation: animate-stripes 5s linear infinite; } @-webkit-keyframes animate-stripes { 100% { background-position: -100px 0; } } @keyframes animate-stripes { 100% { background-position: -100px 0; } }
Comments
Post a Comment