pagination style : demo 7

HTML

CSS

                        .pagination-outer{ text-align: center; }
                        .pagination{
                            display: inline-flex;
                            padding: 0 30px;
                            position: relative;
                        }
                        .pagination:before{
                            content: "";
                            width: 100%;
                            height: 10px;
                            border-radius: 20px;
                            background: linear-gradient(to right,#42246a,#e9403b);
                            position: absolute;
                            bottom: -20px;
                            left: 0;
                        }
                        .pagination li a.page-link{
                            width: 40px;
                            height: 40px;
                            line-height: 36px;
                            border-radius: 50%;
                            border: 1px solid #cfd0d2;
                            background: #cfd0d2;
                            padding: 0;
                            margin: 0 12px 0 0;
                            font-size: 22px;
                            font-weight: 600;
                            color: #fff;
                            position: relative;
                            transition: all 0.3s ease 0s;
                        }
                        .pagination li:last-child a.page-link{ margin-right: 0; }
                        .pagination li a.page-link:hover,
                        .pagination li.active a.page-link,
                        .pagination li.active a.page-link:hover{
                            color: #fff;
                            border-color: #e23f3d;
                            background: #e23f3d;
                        }
                        .pagination li a.page-link:before{
                            content: "";
                            width: 20px;
                            height: 20px;
                            background: #e9ff12;
                            border: 5px solid #df376a;
                            border-radius: 10px 0 10px 10px;
                            margin: 0 auto;
                            opacity: 0;
                            position: absolute;
                            bottom: -40px;
                            left: 0;
                            right: 0;
                            transform: rotate(-45deg);
                            transition: all 0.3s ease 0s;
                        }
                        .pagination li:first-child a.page-link:before,
                        .pagination li:last-child a.page-link:before{ display: none; }
                        .pagination li a.page-link:hover:before,
                        .pagination li.active a.page-link:before,
                        .pagination li.active a.page-link:hover:before{
                            opacity: 1;
                            bottom: -33px;
                        }
                        @media only screen and (max-width: 479px){
                            .pagination{
                                display: block;
                                overflow: auto;
                            }
                            .pagination:before,
                            .pagination li a.page-link:before{
                                display: none;
                            }
                            .pagination li{ display: inline-block; }
                        }
                    
License Terms