Progress bar profile completion

Developer
Size
3,088 Kb
Views
16,192

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 Previews

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
Progress bar profile completion - Script Codes
Progress bar profile completion - Script Codes
Home Page Home
Developer BJack
Username BJack
Uploaded October 07, 2022
Rating 4
Size 3,088 Kb
Views 16,192
Do you need developer help for Progress bar profile completion?

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!

BJack (BJack) Script Codes
Create amazing Facebook ads with AI!

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!