pagination style : demo 6

HTML

CSS

                        .demo{ background: #e4cfaa; }
                        .pagination-outer{ text-align: center; }
                        .pagination{
                            display: inline-flex;
                            background: #ebe8e3;
                            border: 3px solid #9d7f57;
                            border-radius: 40px;
                            overflow: hidden;
                            position: relative;
                        }
                        .pagination li a.page-link{
                            padding: 10px 20px;
                            background: transparent;
                            border: none;
                            border-right: 1px solid #c4b29b;
                            border-radius: 0;
                            font-size: 25px;
                            color: #9d7f57;
                            transition: all 0.3s ease 0s;
                        }
                        .pagination li:last-child a.page-link{ border-right: none; }
                        .pagination li:first-child a.page-link:hover,
                        .pagination li:last-child a.page-link:hover{
                            background: #9d7f57;
                            font-weight: bold;
                            color: #ebe8e3;
                        }
                        .pagination li.active a.page-link:hover{
                            color: #9d7f57;
                            border-right: 1px solid #c4b29b;
                            background: transparent;
                        }
                        .pagination li a.page-link:after,
                        .pagination li.active a.page-link:after{
                            content: "";
                            width: 100%;
                            height: 5px;
                            background: #fb7b00;
                            position: absolute;
                            bottom: 0;
                            left: 0;
                            transform: scaleX(0);
                            transition: all 0.3s ease 0s;
                        }
                        .pagination li a.page-link:hover:after,
                        .pagination li.active a.page-link:after{ transform: scaleX(1); }
                        .pagination li:first-child a.page-link:hover:after,
                        .pagination li:last-child a.page-link:hover:after{ display: none }
                        @media only screen and (max-width: 479px){
                            .pagination{
                                display: block;
                                overflow: auto;
                            }
                            .pagination li{ display: inline-block; }
                        }
                    
License Terms