pagination style : demo 10

HTML

CSS

                        .pagination-outer{ text-align: center; }
                        .pagination{
                            display: inline-flex;
                            position: relative;
                        }
                        .pagination li a.page-link{
                            width: 45px;
                            height: 45px;
                            line-height: 45px;
                            background: transparent;
                            border: none;
                            padding: 0;
                            margin-right: 12px;
                            font-size: 22px;
                            font-weight: 600;
                            color: #d61838;
                            position: relative;
                            transition: all 0.3s ease 0s;
                        }
                        .pagination li:last-child a.page-link{ margin-right: 0; }
                        .pagination li.active a.page-link,
                        .pagination li a.page-link:hover,
                        .pagination li.active a.page-link:hover{
                            color: #d61838;
                            border: none;
                            background: transparent;
                        }
                        .pagination li a.page-link:before{
                            content: "";
                            width: 100%;
                            height: 100%;
                            border: 2px solid #d61838;
                            position: absolute;
                            bottom: 0;
                            left: 0;
                            transition: border-top-width 0.1s ease 0.2s, height 0.2s ease 0.1s, width 0.2s ease 0s, margin 0.2s ease 0s;
                        }
                        .pagination li.active a.page-link:before,
                        .pagination li a.page-link:hover:before,
                        .pagination li.active a.page-link:hover:before{
                            width: 60%;
                            height: 0;
                            border-width: 0 2px 2px;
                            margin: 0 20%;
                            transition: border-top-width 0.1s ease 0s, height 0.2s ease 0.1s, width 0.2s ease 0.2s, margin 0.2s ease 0.2s;
                        }
                        @media only screen and (max-width: 479px){
                            .pagination{ display: block; }
                            .pagination li{ display: inline-block; }
                        }
                    
License Terms