content logo

Bootstrap Cards:

Bootstrap Progress Card

Cards are basically rectangle shaped box containers that can hold any form of information. This is a really simple user interface concept but is extremely flexible in terms of different customization and styling options which makes it easy to create unique designs and special features. Due to this fact, cards have become an essential part in designing websites. Almost every second website uses cards in at least some section of it right now. Cards are perfect to make content and features more discoverable. Besides, they look great in any screen with different sizes so you don’t have to worry about responsiveness on a big TV screen or a small mobile one.

One great use of cards in a website that can make it look quite unique and special is to show progress. Bootstrap progress bars are amazing features that are able to display the progress until a certain task is done. In this post, we have a Bootstrap CSS card with such feature. With the help of this Bootstrap card you can show a circular progress bar – which is also a stylish choice – in which the percentage is also provided for even more additional information. In hover mode, the Bootstrap card effect activates and the percentage becomes larger while the texts turn white. You may change the colour of the progress bar and the background or you can make it somewhat transparent.

#

Bootstrap Card

#

Bootstrap CSS Card

#

Bootstrap Card Effect

#

Bootstrap Progress Card

<!-- This script got from frontendfreecode.com -->
<div class="container ccl">
	<div class="card">
		<div class="box">
			<div class="percent">
				<svg>
					<circle cx="70" cy="70" r="70"></circle>
					<circle cx="70" cy="70" r="70"></circle>
				</svg>
				<div class="number">
					<h2>20<span>%</span></h2>
				</div>
			</div>
			<h2 class="text">PIZZA</h2>
		</div>
	</div>
	<div class="card">
		<div class="box">
			<div class="percent">
				<svg>
					<circle cx="70" cy="70" r="70"></circle>
					<circle cx="70" cy="70" r="70"></circle>
				</svg>
				<div class="number">
					<h2>90<span>%</span></h2>
				</div>
			</div>
			<h2 class="text">BURGER</h2>
		</div>
	</div>
	<div class="card">
		<div class="box">
			<div class="percent">
				<svg>
					<circle cx="70" cy="70" r="70"></circle>
					<circle cx="70" cy="70" r="70"></circle>
				</svg>
				<div class="number">
					<h2>70<span>%</span></h2>
				</div>
			</div>
			<h2 class="text">NOODELS</h2>
		</div>
	</div>
</div><a style="font-size: 8pt; text-decoration: none" target="_blank" href="http://frontendfreecode.com">Free Frontend</a>
                                                                            
body{
 	background: url(https://frontendfreecode.com/img/pexels-photo-66.jpeg);
 	background-size: 100% 100%;
 	background-position: center;
}
.card:nth-child(1) svg circle:nth-child(2){
	stroke-dashoffset: calc(440 - (440 * 20) / 100);
	stroke: #8fff05;
}
.card:nth-child(2) svg circle:nth-child(2){
	stroke-dasharray: 440;
	stroke-dashoffset: calc(440 - (440 * 90) / 100);
	stroke: #00ed6f;
}
.card:nth-child(3) svg circle:nth-child(2){
	stroke-dashoffset: calc(440 - (440 * 70) / 100);
	stroke: #0051ff;
}

.ccl{
	display: flex;
	position: relative;
	justify-content: space-around;
	align-items: center;
	min-height: 100vh;
	
}
.ccl .card{
	position: relative;
	width: 250px;
	background: linear-gradient(0deg, rgba(160,3,3,.7),rgba(216,92,5,.7),rgba(251,199,53,.7));
	display: flex;
	justify-content: center;
	align-items: center;
	height: 300px;
	border-radius: 4px;
	text-align: center;
	overflow: hidden;
	transition: .5s;
	margin: 20px;
}
.ccl .card:hover{
	transform: translateY(-10px);
	box-shadow: 0 15px 35px rgba(0,0,0,.5);
}
.ccl .card:before{
	content: '';
	position: absolute;
	top: 0;
	left: -50%;
	width: 100%;
	height: 100%;
	pointer-events: none;
	z-index: 1;
}
.percent{
	position: relative;
	width: 150px;
	height: 150px;
	border-radius: 50%;
	box-shadow: inset 0 0 5px #000;
	
	z-index: 1000;
}
.percent .number{
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 90%;
	display: flex;
	justify-content: center;
	align-items: center;
	border-radius: 50%;
}
.percent .number h2{
	color: #543131;
	font-weight: 700;
	font-size: 40px;
	transition: .5s;

}
.card:hover .percent .number h2{
	color: #fff;
	font-size: 60px;
}
.percent .number h2 span{
	color: #543131;
	font-size: 30px;
}
.card:hover .percent .number h2 span{
	color: #fff;
	font-size: 24px;
}
.text{
	position: relative;
	color: #777;
	margin-top: 20px;
	z-index: 1;
	font-weight: 700;
	font-size: 18px;
	letter-spacing: 1px;
	text-transform: uppercase;
	transition: 0.5s;
}
.card:hover .text{
	color: #fff;
}
svg{
	position: relative;
	width: 150px;
	height: 150px;
}
svg circle{
	width: 100%;
	height: 100%;
	fill: none;
	stroke: #191919;
	stroke-width:10;
	stroke-linecap: round;
	transform: translate(5px,5px);
}
svg circle:nth-child(2){
	stroke-dasharray: 440;
	stroke-dashoffset: 440;
}

@media (max-width: 720px){
.ccl{
	display: grid;
	padding: 30px 0;
}
}
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></script> 
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<!-- This script got from frontendfreecode.com -->

<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></script> 
<style>
body{
 	background: url(https://frontendfreecode.com/img/pexels-photo-66.jpeg);
 	background-size: 100% 100%;
 	background-position: center;
}
.card:nth-child(1) svg circle:nth-child(2){
	stroke-dashoffset: calc(440 - (440 * 20) / 100);
	stroke: #8fff05;
}
.card:nth-child(2) svg circle:nth-child(2){
	stroke-dasharray: 440;
	stroke-dashoffset: calc(440 - (440 * 90) / 100);
	stroke: #00ed6f;
}
.card:nth-child(3) svg circle:nth-child(2){
	stroke-dashoffset: calc(440 - (440 * 70) / 100);
	stroke: #0051ff;
}

.ccl{
	display: flex;
	position: relative;
	justify-content: space-around;
	align-items: center;
	min-height: 100vh;
	
}
.ccl .card{
	position: relative;
	width: 250px;
	background: linear-gradient(0deg, rgba(160,3,3,.7),rgba(216,92,5,.7),rgba(251,199,53,.7));
	display: flex;
	justify-content: center;
	align-items: center;
	height: 300px;
	border-radius: 4px;
	text-align: center;
	overflow: hidden;
	transition: .5s;
	margin: 20px;
}
.ccl .card:hover{
	transform: translateY(-10px);
	box-shadow: 0 15px 35px rgba(0,0,0,.5);
}
.ccl .card:before{
	content: '';
	position: absolute;
	top: 0;
	left: -50%;
	width: 100%;
	height: 100%;
	pointer-events: none;
	z-index: 1;
}
.percent{
	position: relative;
	width: 150px;
	height: 150px;
	border-radius: 50%;
	box-shadow: inset 0 0 5px #000;
	
	z-index: 1000;
}
.percent .number{
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 90%;
	display: flex;
	justify-content: center;
	align-items: center;
	border-radius: 50%;
}
.percent .number h2{
	color: #543131;
	font-weight: 700;
	font-size: 40px;
	transition: .5s;

}
.card:hover .percent .number h2{
	color: #fff;
	font-size: 60px;
}
.percent .number h2 span{
	color: #543131;
	font-size: 30px;
}
.card:hover .percent .number h2 span{
	color: #fff;
	font-size: 24px;
}
.text{
	position: relative;
	color: #777;
	margin-top: 20px;
	z-index: 1;
	font-weight: 700;
	font-size: 18px;
	letter-spacing: 1px;
	text-transform: uppercase;
	transition: 0.5s;
}
.card:hover .text{
	color: #fff;
}
svg{
	position: relative;
	width: 150px;
	height: 150px;
}
svg circle{
	width: 100%;
	height: 100%;
	fill: none;
	stroke: #191919;
	stroke-width:10;
	stroke-linecap: round;
	transform: translate(5px,5px);
}
svg circle:nth-child(2){
	stroke-dasharray: 440;
	stroke-dashoffset: 440;
}

@media (max-width: 720px){
.ccl{
	display: grid;
	padding: 30px 0;
}
}
</style>

</head>
<body>
<div class="container ccl">
	<div class="card">
		<div class="box">
			<div class="percent">
				<svg>
					<circle cx="70" cy="70" r="70"></circle>
					<circle cx="70" cy="70" r="70"></circle>
				</svg>
				<div class="number">
					<h2>20<span>%</span></h2>
				</div>
			</div>
			<h2 class="text">PIZZA</h2>
		</div>
	</div>
	<div class="card">
		<div class="box">
			<div class="percent">
				<svg>
					<circle cx="70" cy="70" r="70"></circle>
					<circle cx="70" cy="70" r="70"></circle>
				</svg>
				<div class="number">
					<h2>90<span>%</span></h2>
				</div>
			</div>
			<h2 class="text">BURGER</h2>
		</div>
	</div>
	<div class="card">
		<div class="box">
			<div class="percent">
				<svg>
					<circle cx="70" cy="70" r="70"></circle>
					<circle cx="70" cy="70" r="70"></circle>
				</svg>
				<div class="number">
					<h2>70<span>%</span></h2>
				</div>
			</div>
			<h2 class="text">NOODELS</h2>
		</div>
	</div>
</div><div id="bcl"><a style="font-size:8pt;text-decoration:none;" href="http://www.devanswer.com">Free Frontend</a></div>

</body>
</html>
Preview