counter style : demo 26

Web Designing

5486

Web Development

3578

Brand Building

4652

Responsive Design

8715

HTML

                        

Web Designing

5486

Web Development

3578

CSS

                        .counter{ text-align: center; }
                        .counter .counter-content{
                            padding: 30px 10px 80px;
                            color: #fff;
                            z-index: 1;
                            position: relative;
                        }
                        .counter .counter-content:before{
                            content: "";
                            width: 100%;
                            height: 100%;
                            background: #6b0d34;
                            position: absolute;
                            top: 0;
                            left: 0;
                            z-index: -1;
                            -webkit-clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 80%, 0 100%);
                            clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 80%, 0 100%);
                        }
                        .counter .counter-content:after{
                            content: "";
                            position: absolute;
                            top: 0;
                            left: 15px;
                            right: 15px;
                            bottom: 20px;
                            background: #a74970;
                            z-index: -1;
                            -webkit-clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 80%, 0 100%);
                            clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 80%, 0 100%);
                        }
                        .counter .title{
                            font-size: 18px;
                            font-weight: 600;
                            text-transform: uppercase;
                            margin-bottom: 10px;
                        }
                        .counter .counter-value{
                            font-size: 60px;
                            font-weight:700;
                            text-shadow: 0 0 10px rgba(0,0,0,0.4);
                        }
                        .counter .counter-icon{
                            display: inline-block;
                            width: 100px;
                            height: 100px;
                            line-height: 100px;
                            border-radius: 50%;
                            background: #6b0d34;
                            font-size: 50px;
                            color: #fff;
                            margin-top: -20px;
                        }
                        .counter.yellow .counter-content:before,
                        .counter.yellow .counter-icon{ background: #8d6c01; }
                        .counter.yellow .counter-content:after{ background: #d6a502; }
                        .counter.blue .counter-content:before,
                        .counter.blue .counter-icon{ background: #0b525c; }
                        .counter.blue .counter-content:after{ background: #13939c; }
                        .counter.green .counter-content:before,
                        .counter.green .counter-icon{ background: #026436; }
                        .counter.green .counter-content:after{ background: #24ac6c; }
                        @media only screen and (max-width: 990px){
                            .counter{ margin-bottom: 30px; }
                        }
                    

JavaScript

(Counter depend on jQuery.)
                        

                        $(document).ready(function(){
                            $('.counter-value').each(function(){
                                $(this).prop('Counter',0).animate({
                                    Counter: $(this).text()
                                },{
                                    duration: 3500,
                                    easing: 'swing',
                                    step: function (now){
                                        $(this).text(Math.ceil(now));
                                    }
                                });
                            });
                        });
                    
License Terms