counter style : demo 27

5512

Web Designing

3758

Web Development

4452

Brand Building

8156

Responsive Design

HTML

                        
5512

Web Designing

3758

Web Development

CSS

                        .demo{ background: #e5e5e7; }
                        .counter{
                            width: 240px;
                            height: 240px;
                            text-align: center;
                            margin: 0 auto;
                            color: #5a6723;
                            z-index: 1;
                            position: relative;
                        }
                        .counter:before{
                           content: "";
                           width: 100%;
                           height: 100%;
                           border-radius: 50% 50% 0 50%;
                           background: linear-gradient(to bottom, #5a6723,#b2b433);
                           position: absolute;
                           top: 0;
                           left: 0;
                           z-index: -1;
                        }
                        .counter .counter-content{
                            padding: 50px 10px 0;
                            background: #e5e5e7;
                            border: 5px solid #5a6723;
                            border-radius: 50% 50% 0 50%;
                            position: absolute;
                            top: 20px;
                            left: 20px;
                            bottom: 0;
                            right: 0;
                        }
                        .counter .counter-value{
                           font-size: 60px;
                           font-weight: 700;
                           margin-bottom: 10px;
                           text-shadow: 4px 4px 2px rgba(150, 150, 150, 0.7);
                        }
                        .counter .title{
                           font-size: 18px;
                           font-weight: 600;
                           text-transform: uppercase;
                           margin: 0;
                        }
                        .counter .counter-icon{
                            width: 100px;
                            height: 100px;
                            line-height: 100px;
                            border-radius: 50%;
                            border: 2px solid #5a6723;
                            background: linear-gradient(to bottom, #5a6723,#b2b433);
                            font-size: 45px;
                            color: #fff;
                            position: absolute;
                            top: 0;
                            left: -20px;
                        }
                        .counter.red:before,
                        .counter.red .counter-icon{
                           background: linear-gradient(to bottom, #983021,#c74630);
                           border-color: #983021;
                        }
                        .counter.red .counter-content{
                           border-color: #983021;
                           color: #983021;
                        }
                        .counter.blue:before,
                        .counter.blue .counter-icon{
                           background: linear-gradient(to bottom, #3a5974,#478093);
                           border-color: #3a5974;
                        }
                        .counter.blue .counter-content{
                           border-color: #3a5974;
                           color: #3a5974;
                        }
                        .counter.orange:before,
                        .counter.orange .counter-icon{
                           background: linear-gradient(to bottom, #933a17,#dd6727);
                           border-color: #933a17;
                        }
                        .counter.orange .counter-content{
                           border-color: #933a17;
                           color: #983021;
                        }
                        @media screen and (max-width:1200px) and (min-width: 990px){
                           .counter{
                                width: 220px;
                                height: 220px;
                           }
                           .counter .counter-icon{
                                width: 80px;
                                height: 80px;
                                line-height: 80px;
                                font-size: 40px;
                                left:-10px;
                           }
                           .counter .title{ font-size: 15px; }
                        }
                        @media only 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