Progress bar profile completion
How do I make an progress bar profile completion?
Using a progress element for a profile completion bar. Added click states to see desired behavior; in the wild the user would click a "save" or "next" button which would animate the progress bar accordingly. . What is a progress bar profile completion? How do you make a progress bar profile completion? This script and codes were developed by BJack on 07 October 2022, Friday.
Progress bar profile completion - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Progress bar profile completion</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! */ *{ box-sizing: border-box;
}
html,body{ height: 100%; width: 100%; padding: 0; margin: 0 auto; color: #000; background: url('https://s3-us-west-2.amazonaws.com/s.cdpn.io/45816/noisy-bg.png') #27ae60;
}
.cont{ height: 100%; width: 576px; left: calc(50% - 288px); padding: 0; margin: 0 auto; position: absolute;
}
#progress-bar{ appearance:none; width: 576px; color: #000; height: 2px; margin: 0 auto;
}
span { height: 10px; width: 10px; border-radius: 100%; border: 3px solid #137CC0; background:#137CC0; position: absolute; left:0; top: 12px; cursor: pointer; transition: all 0.4s ease-in-out;
}
p{ font-family: Arial; font-size: 14pt; text-shadow: 1px 1px 0px #000; color: #fff; text-align: center;
}
h1{ font-family: Arial; font-size: 24pt; text-shadow: 1px 1px 0px #000; color: #fff; text-align: center; margin:0; padding:0;
}
h3{ font-family: Arial; font-size: 16pt; text-shadow: 1px 1px 0px #000; color: #fff; text-align: center;
}
.second{ left: 192px;
}
.third{ left: 384px;
}
.fourth{ left: 576px;
}
#progress-bar::-webkit-progress-value{ /* Changes line color */ background: #fff; transition: all 0.4s ease-in-out;
}
#progress-bar::-webkit-progress-bar{ /* Changes background color */ background: #137CC0;
}
.border-change{ border-color:#fff; transition: all 0.4s ease-in-out;
} </style> <script src="https://cdnjs.cloudflare.com/ajax/libs/prefixfree/1.0.7/prefixfree.min.js"></script>
</head>
<body> <h1>Profile Completion</h1>
<h3>Click on a notch.</h3>
<div class="cont">
<progress id="progress-bar" min="1" max="100" value="0"></progress>
<span class="first border-change"></span>
<span class="second"></span>
<span class="third"></span>
<span class="fourth"></span>
<p class="percent">0% Complete</p>
</div> <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 bar profile completion - Script Codes CSS Codes
*{ box-sizing: border-box;
}
html,body{ height: 100%; width: 100%; padding: 0; margin: 0 auto; color: #000; background: url('https://s3-us-west-2.amazonaws.com/s.cdpn.io/45816/noisy-bg.png') #27ae60;
}
.cont{ height: 100%; width: 576px; left: calc(50% - 288px); padding: 0; margin: 0 auto; position: absolute;
}
#progress-bar{ appearance:none; width: 576px; color: #000; height: 2px; margin: 0 auto;
}
span { height: 10px; width: 10px; border-radius: 100%; border: 3px solid #137CC0; background:#137CC0; position: absolute; left:0; top: 12px; cursor: pointer; transition: all 0.4s ease-in-out;
}
p{ font-family: Arial; font-size: 14pt; text-shadow: 1px 1px 0px #000; color: #fff; text-align: center;
}
h1{ font-family: Arial; font-size: 24pt; text-shadow: 1px 1px 0px #000; color: #fff; text-align: center; margin:0; padding:0;
}
h3{ font-family: Arial; font-size: 16pt; text-shadow: 1px 1px 0px #000; color: #fff; text-align: center;
}
.second{ left: 192px;
}
.third{ left: 384px;
}
.fourth{ left: 576px;
}
#progress-bar::-webkit-progress-value{ /* Changes line color */ background: #fff; transition: all 0.4s ease-in-out;
}
#progress-bar::-webkit-progress-bar{ /* Changes background color */ background: #137CC0;
}
.border-change{ border-color:#fff; transition: all 0.4s ease-in-out;
}
Progress bar profile completion - Script Codes JS Codes
$(document).ready(function(){ $('span').click(function(){ if ($(this).hasClass('first')){ $('#progress-bar').val('0'); $(this).nextAll().removeClass('border-change'); $('.percent').html("0% Complete"); }else if ($(this).hasClass('second')){ $(this).nextAll().removeClass('border-change'); $('#progress-bar').val('34'); $(this).prevAll().addClass('border-change'); $(this).addClass('border-change'); $('.percent').html("33% Complete"); }else if ($(this).hasClass('third')){ $(this).nextAll().removeClass('border-change'); $('#progress-bar').val('67'); $(this).prevAll().addClass('border-change'); $(this).addClass('border-change'); $('.percent').html("66% Complete"); } else{ $('#progress-bar').val('100'); $(this).addClass('border-change'); $(this).prevAll().addClass('border-change'); $('.percent').html("100% Complete"); } });
});// complete click
Developer | BJack |
Username | BJack |
Uploaded | October 07, 2022 |
Rating | 4 |
Size | 3,088 Kb |
Views | 16,192 |
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 |
One Page Layout | 4,233 Kb |
Remembrance Day 2014. | 2,966 Kb |
Penmau5 | 3,811 Kb |
Social Buttons | 3,551 Kb |
Another top menu | 3,809 Kb |
Scroll indicator | 2,459 Kb |
CSS3 Circular Loading | 2,408 Kb |
StackOverflow solution | 2,114 Kb |
Twitter card | 2,900 Kb |
Chat app mockup | 4,601 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 |
Highbrow Basic HTML Lesson 8 | Kimlarocca | 2,094 Kb |
CSS-Flexbox-Demo | Sstiglets | 1,709 Kb |
Sort the Knowlege | Eprouver | 3,915 Kb |
Image Stack Test SCSS | CalvinMorett | 2,799 Kb |
Sencha Touch 2.3.1 Basic Grid Example | Trozdol | 2,770 Kb |
Boxes | H3l1um | 2,563 Kb |
Fellowship of the Ring | Aussieyang | 2,639 Kb |
Animated bar chart | CreativePunch | 3,124 Kb |
Typefaces with descriptions | Megandoty | 2,944 Kb |
Gradient-ui-button-mark-fx | Tabspace | 1,881 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!