Progress bars with colour change.
How do I make an progress bars with colour change.?
A set of progress bar styles that change the color based on the progress. Useful for showing levels.. What is a progress bars with colour change.? How do you make a progress bars with colour change.? This script and codes were developed by Nick Nikolov on 17 October 2022, Monday.
Progress bars with colour change. - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Progress bars with colour change.</title> <style> /* NOTE: The styles were added inline because Prefixfree needs access to your styles and they must be inlined if they are on local disk! */ .progress { box-sizing: border-box;
}
.progress .bar { box-sizing: border-box; background-image: -moz-linear-gradient(90deg, #53d769 0%, #fcff00 50%, #fc3d39 100%); background-image: -webkit-linear-gradient(90deg, #53d769 0%, #fcff00 50%, #fc3d39 100%); background-image: -ms-linear-gradient(90deg, #53d769 0%, #fcff00 50%, #fc3d39 100%); background-size: 1px 2000px; background-position: top left; background-repeat: repeat-x; transition: all 0.5s ease-in-out;
}
.progress-main { margin-bottom: 20px; background: #eee; box-shadow: rgba(0, 0, 0, 0.15) 0 2px 3px -1px;
}
.progress-main .bar { height: 10px;
}
.progress-small { background: #eee; display: inline-block; width: 100px;
}
.progress-small .bar { height: 6px;
}
body { font-family: Roboto, Arial, sans-serif; font-size: 16px; font-weight: 300;
}
h1 { font-size: 24px; font-weight: 300;
}
.container { max-width: 600px; margin: 0 auto; padding: 20px 0;
}
table { border-collapse: collapse; table-layout: fixed; width: 100%; background: #FFF; box-shadow: rgba(0, 0, 0, 0.15) 0 4px 4px -4px; border: 1px solid #eee;
}
table tr:hover { background: #F8F8F8; transition: all 0.3s ease-in-out;
}
table td,
table th { vertical-align: top; text-align: left; padding: 10px; border-bottom: 1px solid #eee;
}
table td:last-child,
table th:last-child { width: 100px;
} </style> <script src="https://cdnjs.cloudflare.com/ajax/libs/prefixfree/1.0.7/prefixfree.min.js"></script>
</head>
<body> <div class="container"> <h1>Progress bar Demo</h1> <div class="progress progress-main"> <div class="bar"></div> </div> <table> <tbody> <tr> <td>Steve Overturf</td> <td> <div class="progress progress-small"> <div class="bar"></div> </div> </td> </tr> <tr> <td>Sophia Vandyne</td> <td> <div class="progress progress-small"> <div class="bar"></div> </div> </td> </tr> <tr> <td>Carl Brasel</td> <td> <div class="progress progress-small"> <div class="bar"></div> </div> </td> </tr> <tr> <td>Tanisha Forgione</td> <td> <div class="progress progress-small"> <div class="bar"></div> </div> </td> </tr> <tr> <td>Steve Overturf</td> <td> <div class="progress progress-small"> <div class="bar"></div> </div> </td> </tr> <tr> <td>Devora Hodnett</td> <td> <div class="progress progress-small"> <div class="bar"></div> </div> </td> </tr> </tbody> </table>
</div>
<link href='https://fonts.googleapis.com/css?family=Roboto:300,400' rel='stylesheet' type='text/css'> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script> <script src="js/index.js"></script>
</body>
</html>
Progress bars with colour change. - Script Codes CSS Codes
.progress { box-sizing: border-box;
}
.progress .bar { box-sizing: border-box; background-image: -moz-linear-gradient(90deg, #53d769 0%, #fcff00 50%, #fc3d39 100%); background-image: -webkit-linear-gradient(90deg, #53d769 0%, #fcff00 50%, #fc3d39 100%); background-image: -ms-linear-gradient(90deg, #53d769 0%, #fcff00 50%, #fc3d39 100%); background-size: 1px 2000px; background-position: top left; background-repeat: repeat-x; transition: all 0.5s ease-in-out;
}
.progress-main { margin-bottom: 20px; background: #eee; box-shadow: rgba(0, 0, 0, 0.15) 0 2px 3px -1px;
}
.progress-main .bar { height: 10px;
}
.progress-small { background: #eee; display: inline-block; width: 100px;
}
.progress-small .bar { height: 6px;
}
body { font-family: Roboto, Arial, sans-serif; font-size: 16px; font-weight: 300;
}
h1 { font-size: 24px; font-weight: 300;
}
.container { max-width: 600px; margin: 0 auto; padding: 20px 0;
}
table { border-collapse: collapse; table-layout: fixed; width: 100%; background: #FFF; box-shadow: rgba(0, 0, 0, 0.15) 0 4px 4px -4px; border: 1px solid #eee;
}
table tr:hover { background: #F8F8F8; transition: all 0.3s ease-in-out;
}
table td,
table th { vertical-align: top; text-align: left; padding: 10px; border-bottom: 1px solid #eee;
}
table td:last-child,
table th:last-child { width: 100px;
}
Progress bars with colour change. - Script Codes JS Codes
//SOME JS FOR SETTING THE DEMO VALUES
$('document').ready(function() { randomize(); var timer = setInterval(function() { randomize() }, 3000);
});
function randomize() { $('.progress .bar').each(function() { var val = Math.floor((Math.random() * 100)); $(this).attr('style', 'width:' + val + '%;background-position:0 ' + val + '%'); });
}
Developer | Nick Nikolov |
Username | necks |
Uploaded | October 17, 2022 |
Rating | 4 |
Size | 3,845 Kb |
Views | 18,216 |
Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!
Name | Size |
A Pen by Nick Nikolov | 1,732 Kb |
User Icons | 3,351 Kb |
Simple grid layout | 1,978 Kb |
Moblie friendly top navbar | 3,556 Kb |
Simple fluid navigation with 4 hover effects | 3,336 Kb |
Single element speech bubble | 3,191 Kb |
Page header bar toggle on scroll | 4,141 Kb |
Heart Rating | 3,349 Kb |
4 color border for highlighting feature elements | 4,105 Kb |
XSellco SVG animated logo | 4,358 Kb |
Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!
Name | Username | Size |
Gears | Synvox | 3,278 Kb |
Flower expansion | Sreucherand | 3,425 Kb |
A Pen by lizz | Lizz | 10,068 Kb |
700 Synapses Per Second | Silentkrange | 2,138 Kb |
LBCA - Mail canvas | Emnbdx | 3,856 Kb |
Banner Ad | Raquellorenzana | 4,172 Kb |
AOR site logo | Thatbram | 2,527 Kb |
Box Shadow Effects | Retrofuturistic | 2,143 Kb |
A Pen by Jonas Bjork | Jonasbjork | 3,115 Kb |
TweenMax transformOrigin Bubble | Nicolund | 2,209 Kb |
Surf anonymously, prevent hackers from acquiring your IP address, send anonymous email, and encrypt your Internet connection. High speed, ultra secure, and easy to use. Instant setup. Hide Your IP Now!