counter style : demo 71

1963

Web Designing

1578

Brand Building

1825

Web Development

1796

Responsive Design

HTML

(CSS Framwork: Bootstrap)
                        
1963

Web Designing

1578

Brand Building

CSS

(Fonts required: Sarabun.)
                        .counter{
                            font-family: 'Sarabun', sans-serif;
                            text-align: center;
                            position: relative;
                            width: 210px;
                            margin: 0 auto;
                        }
                        .counter .counter-content{
                            color: #fff;
                            width: 80%;
                            position: absolute;
                            top: 47%;
                            left: 50%;
                            transform: translateX(-50%) translateY(-50%);
                        }
                        .counter .counter-value{
                            font-size: 35px;
                            line-height: 33px;
                            display: block;
                            margin: 0 0 10px;
                        }
                        .counter h3{
                            font-size: 17px;
                            text-transform: uppercase;
                            margin: 0;
                        }
                        @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