Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSS

progress bar with width gradient

.progress-bar-container {
  height: 50px;
  margin: 50px 0px;
  background: black;
  position:relative; /* relative here */
}

.progress-bar-indicator {
  height: 100%;
  border-radius: 25px;
   /* this will do the magic */
  -webkit-mask:linear-gradient(#fff 0 0);
          mask:linear-gradient(#fff 0 0);
}
.progress-bar-indicator::before {
  content:"";
  position:absolute;
  top:0;
  left:0;
  right:0;
  bottom:0;
  background-image: linear-gradient(to right, red, green, blue); /* your gradient here */
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #progress #bar #width #gradient
ADD COMMENT
Topic
Name
2+1 =