counter style : demo 198

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.)
                    :root{  --main-color: #706fd3; }
                    .counter{
                        color: #192a56;
                        font-family: 'Poppins', sans-serif;
                    }
                    .counter .counter-icon{
                        color: var(--main-color);
                        font-size: 50px;
                        text-align: center;
                        line-height: 35px;
                        text-shadow: -3px -3px rgba(0,0,0,0.1);
                        margin: 0 10px 0 0;
                        display: inline-block;
                        vertical-align: top;
                    }
                    .counter .counter-content{
                        width: calc(100% - 80px);
                        display: inline-block;
                    }
                    .counter .counter-value{
                        font-size: 45px;
                        font-weight: 600;
                        line-height: 52px;
                        margin: 0 0 10px;
                        display: block;
                    }
                    .counter h3{
                        color: var(--main-color);
                        font-size: 17px;
                        font-weight: 500;
                        text-transform: capitalize;
                        letter-spacing: 1px;
                        margin: 0 0 12px;
                    }
                    .counter.red{ --main-color: #ff5252; }
                    .counter.blue{ --main-color: #34ace0; }
                    .counter.green{ --main-color: #11ad86; }
                    @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