counter style : demo 193

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: Dosis.)
                    :root{ --main-color: #e15f41; }
                    .counter{
                        font-family: 'Nunito Sans', sans-serif;
                        text-align: center;
                    } 
                    .counter .counter-value{
                        color: var(--main-color);
                        background-color: var(--main-color);
                        font-size: 30px;
                        font-weight: 700;
                        text-shadow: 3px 3px rgba(0,0,0,0.2);
                        line-height: 110px;
                        width: 120px;
                        height: 110px;
                        margin: 0 auto 12px;
                        display: block;
                        position: relative;
                        clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
                    }
                    .counter .counter-value:before{
                        content: '';
                        background-color: #fff;
                        position: absolute;
                        left: 7px;
                        right: 7px;
                        top: 7px;
                        bottom: 7px;
                        z-index: -1;
                        clip-path: inherit;
                    }
                    .counter h3{
                        font-size: 20px;
                        font-weight: 700;
                        letter-spacing: 0.5px;
                        text-transform: capitalize;
                        margin: 0;
                    }
                    .counter.blue{ --main-color: #546de5; }
                    .counter.magenta{ --main-color: #c44569; }
                    .counter.black{ --main-color: #303952; }
                    @media screen and (max-width:990px){
                        .counter{ margin-bottom: 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