counter style : demo 39

1245

Web Designing

1359

Brand Building

1178

Web Development

1071

Responsive Design

HTML

(CSS Framwork: Bootstrap)
                        
1245

Web Designing

1359

Brand Building

CSS

(Fonts required: PT Sans.)
                        .counter{
                            font-family: 'PT Sans', sans-serif;
                            text-align: center;
                            position: relative;
                        }
                        .counter svg circle{ stroke: #51197C;}
                        .counter svg path,
                        .counter svg rect{
                            fill: #51197C;
                        }
                        .counter .counter-content{
                            color: #51197C;
                            padding: 28px 0;
                            margin-bottom: 45px;
                            transform: translateX(-50%) translateY(-50%);
                            position: absolute;
                            left: 50%;
                            top: 63%;
                        }
                        .counter .counter-value{
                            font-size: 40px;
                            font-weight: 600;
                            line-height: 20px;
                            display: block;
                            transition: all 0.3s ease 0s;
                        }
                        .counter .counter-content:hover .counter-value{
                            font-size: 45px;
                            text-shadow: 0 0 2px #909090;
                        }
                        .counter h3{
                            font-size: 15px;
                            font-weight: 600;
                            text-transform: uppercase;
                            padding: 7px 5px;
                            border-radius: 15px 0;
                            display: inline-block;
                        }
                        .counter.red svg circle{ stroke: #ff3030; }
                        .counter.red svg path,
                        .counter.red svg rect{
                            fill: #ff3030;
                        }
                        .counter.red .counter-content{ color: #ff3030; }
                        .counter.green svg circle{ stroke: #3db53d; }
                        .counter.green svg path,
                        .counter.green svg rect{
                            fill: #3db53d;
                        }
                        .counter.green .counter-content{ color: #3db53d; }
                        .counter.blue svg circle{ stroke: #2a94e0; }
                        .counter.blue svg path,
                        .counter.blue svg rect{
                            fill: #2a94e0;
                        }
                        .counter.blue .counter-content{ color: #2a94e0; }
                        @media 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