counter style : demo 158

1963

Web Designing

1854

Web Development

1756

Brand Building

1823

Responsive Design

HTML

(Icons : Fontawesome & CSS Framwork: Bootstrap)
                        
1963

Web Designing

1854

Web Development

CSS

(Fonts required: Poppins.)
                    .counter{
                        color: #fff;
                        font-family: 'Poppins', sans-serif;
                        text-align: center;
                        padding: 20px 30px 50px;
                        border-top: 25px solid #0DB646;
                        box-shadow: 0 5px 5px -3px rgba(0,0,0,0.3) inset;
                        border-radius: 20px 20px 0 0;
                        position: relative;
                        z-index: 1;
                    }
                    .counter:before{
                        content: '';
                        background-color: #0DB646;
                        height: 100%;
                        box-shadow: 0 5px 10px -2px rgba(0,0,0,0.3) inset;
                        position: absolute;
                        left: 20px;
                        right: 20px;
                        top: 0; 
                        z-index: -1;
                        clip-path: polygon(0 0, 100% 0, 100% 75%, 50% 100%, 0 75%);
                    }
                    .counter .counter-icon{
                        color: #fff;
                        font-size: 35px;
                        line-height: 35px;
                        margin: 0 0 15px;
                    }
                    .counter .counter-value{
                        font-size: 30px;
                        line-height: 30px;
                        font-weight: 600;
                        margin: 0 0 15px;
                        display: block;
                    }
                    .counter h3{
                        font-size: 15px;
                        font-weight: 500;
                        letter-spacing: 0.5px;
                        text-transform: capitalize;
                        margin: 0;
                    }
                    .counter.magenta{ border-color: #B0112D; }
                    .counter.magenta:before{ background-color: #B0112D; }
                    .counter.yellow{ border-color: #f49c04; }
                    .counter.yellow:before{ background-color: #f49c04; }
                    .counter.purple{ border-color: #A00DB1; }
                    .counter.purple:before{ background-color: #A00DB1; }
                    @media screen and (max-width:990px){
                        .counter{
                            width: 220px;
                            margin: 0 auto 40px;
                        }
                    }
                    

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