Get started with circular-progress CDN
MIT licensed
Circular-progress is a lightweight library for creating customizable circular progress indicators.
Tags:- circular
- progress
- JavaScript
- widget
- dependency-free
- configurable
Stable version
Copied!
How to start using circular-progress CDN
<!DOCTYPE html>
<html>
<head>
<title>Get started with circular-progress CDN - cdnhub.io</title>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/css/bootstrap.min.css">
<style>
.progress-container {
width: 200px;
height: 200px;
margin: 0 auto;
position: relative;
}
.progress-circle {
width: 100%;
height: 100%;
border-radius: 50%;
border: 3px solid #e5e7eb;
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
}
</style>
</head>
<body>
<div id="app">
<div class="progress-container">
<div id="progress"></div>
</div>
</div>
<script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.11.6/dist/umd/popper.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/js/bootstrap.min.js"></script>
<script src="https://cdn.cdnhub.io/circular-progress/0.2.3/circular-progress.min.js"></script>
<script>
const progress = new CircularProgress('#progress', {
strokeWidth: 5,
percent: 50,
text: '50%',
textInner: 'Complete',
textOuter: 'Loading',
textColor: '#333',
backgroundColor: '#f8f9fa',
trailColor: '#e5e7eb',
foregroundColor: '#34c759'
});
</script>
</body>
</html>
Copied!
Copied!
Copied!