content logo

Bootstrap Paginations:

Bootstrap Circular Pagination with Hover Effect

The use of paginations can help a lot in shortening the length of a text or an argument. In this post, we have provided one of these pagination. This pagination has a color between purple and crimson. Its items are circular and each item has a number. The colors of the numbers are normally white, but in the hover mode they are black.

#

Circular Free Pagination Code

#

Responsive Pagination Buttons

#

Pure CSS Pagination

#

BS Pagination Hover Animation

<!-- This script got from frontendfreecode.com -->
<h1>Pure CSS Pagination</h1>
<p>Hover the number to see the beautiful animation effect !!</p>
<nav class="paginate" aria-label="Page navigation">
    <ul class="pagination">
        <li class="page-item">
            <a href="#" class="page-link" aria-label="Previous">
                <span aria-hidden="true">«</span>
            </a>
        </li>
        <li class="page-item"><a class="page-link" href="#">1</a></li>
        <li class="page-item"><a class="page-link" href="#">2</a></li>
        <li class="page-item active"><a class="page-link" href="#">3</a></li>
        <li class="page-item"><a class="page-link" href="#">4</a></li>
        <li class="page-item"><a class="page-link" href="#">5</a></li>
        <li class="page-item">
            <a href="#" class="page-link" aria-label="Next">
                <span aria-hidden="true">»</span>
            </a>
        </li>
    </ul>
</nav><a style="font-size: 8pt; text-decoration: none" target="_blank" href="http://frontendfreecode.com">Free Frontend</a>
                                                                            
body {
	margin-top: 100px;
	text-align: center;
	background: #cebebe !important;
}
h1 {
	color: #353535;
	font-weight: 700;
	font-size: 45px;
}
p {
	font-size: 18px;
	margin-bottom: 50px !important;
}
.paginate {
	text-align: center;
}
.pagination {
	font-family: 'Ubuntu', sans-serif;
	display: inline-flex;
	position: relative;
}
.pagination li a.page-link {
	line-height: 41px;
	height: 42px;
	width: 42px;
	padding: 0;
	margin: 0 5px;
	border: none;
	border-radius: 50% !important;
	overflow: hidden;
	position: relative;
	color: #fff;
	background-color: #6d2e46;
	font-size: 20px;
	font-weight: 600;
	z-index: 1;
	transition: all 0.3s ease 0s;
}
.pagination li a.page-link:hover, .pagination li a.page-link:focus, .pagination li.active a.page-link:hover, .pagination li.active a.page-link {
	color: #222;
	background: transparent;
	box-shadow: 0 0 10px #a26769;
}
.pagination li a.page-link:before {
	content: '';
	position: absolute;
	left: 0;
	top: 0;
	z-index: -1;
	height: 100%;
	width: 100%;
	border: 5px solid #a26769;
	border-top-color: transparent;
	border-right-color: transparent;
	border-radius: 50%;
	opacity: 0;
	transform: rotate(155deg);
	transition: all 0.3s ease 0s;
}
.pagination li a.page-link:hover:before, .pagination li a.page-link:focus:before, .pagination li.active a.page-link:before {
	opacity: 1;
	transform: rotate(-15deg);
}
@media only screen and (max-width: 480px) {
	.pagination {
		font-size: 0;
		border: none;
		display: inline-block;
	}
	.pagination li {
		display: inline-block;
		vertical-align: top;
		margin: 0 0 10px;
	}
}
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.0.1/css/font-awesome.min.css">
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<!-- This script got from frontendfreecode.com -->

<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.0.1/css/font-awesome.min.css">
<style>
body {
	margin-top: 100px;
	text-align: center;
	background: #cebebe !important;
}
h1 {
	color: #353535;
	font-weight: 700;
	font-size: 45px;
}
p {
	font-size: 18px;
	margin-bottom: 50px !important;
}
.paginate {
	text-align: center;
}
.pagination {
	font-family: 'Ubuntu', sans-serif;
	display: inline-flex;
	position: relative;
}
.pagination li a.page-link {
	line-height: 41px;
	height: 42px;
	width: 42px;
	padding: 0;
	margin: 0 5px;
	border: none;
	border-radius: 50% !important;
	overflow: hidden;
	position: relative;
	color: #fff;
	background-color: #6d2e46;
	font-size: 20px;
	font-weight: 600;
	z-index: 1;
	transition: all 0.3s ease 0s;
}
.pagination li a.page-link:hover, .pagination li a.page-link:focus, .pagination li.active a.page-link:hover, .pagination li.active a.page-link {
	color: #222;
	background: transparent;
	box-shadow: 0 0 10px #a26769;
}
.pagination li a.page-link:before {
	content: '';
	position: absolute;
	left: 0;
	top: 0;
	z-index: -1;
	height: 100%;
	width: 100%;
	border: 5px solid #a26769;
	border-top-color: transparent;
	border-right-color: transparent;
	border-radius: 50%;
	opacity: 0;
	transform: rotate(155deg);
	transition: all 0.3s ease 0s;
}
.pagination li a.page-link:hover:before, .pagination li a.page-link:focus:before, .pagination li.active a.page-link:before {
	opacity: 1;
	transform: rotate(-15deg);
}
@media only screen and (max-width: 480px) {
	.pagination {
		font-size: 0;
		border: none;
		display: inline-block;
	}
	.pagination li {
		display: inline-block;
		vertical-align: top;
		margin: 0 0 10px;
	}
}
</style>

</head>
<body>
<h1>Pure CSS Pagination</h1>
<p>Hover the number to see the beautiful animation effect !!</p>
<nav class="paginate" aria-label="Page navigation">
    <ul class="pagination">
        <li class="page-item">
            <a href="#" class="page-link" aria-label="Previous">
                <span aria-hidden="true">«</span>
            </a>
        </li>
        <li class="page-item"><a class="page-link" href="#">1</a></li>
        <li class="page-item"><a class="page-link" href="#">2</a></li>
        <li class="page-item active"><a class="page-link" href="#">3</a></li>
        <li class="page-item"><a class="page-link" href="#">4</a></li>
        <li class="page-item"><a class="page-link" href="#">5</a></li>
        <li class="page-item">
            <a href="#" class="page-link" aria-label="Next">
                <span aria-hidden="true">»</span>
            </a>
        </li>
    </ul>
</nav><div id="bcl"><a style="font-size:8pt;text-decoration:none;" href="http://www.devanswer.com">Free Frontend</a></div>

</body>
</html>
Preview