counter style : demo 19

15305

Web Designing

11563

Web Development

10235

Brand Building

8562

Responsive Design

HTML

                        
15305

Web Designing

11563

Web Development

CSS

                        .counter{
                            padding: 75px 0;
                            text-align: center;
                            overflow: hidden;
                            position: relative;
                        }
                        .counter:before{
                            content: "";
                            width: 225px;
                            height: 225px;
                            border-radius: 50%;
                            background: linear-gradient(to bottom right,#f9b434,#eb9539);
                            position: absolute;
                            top: 0;
                            left: 50%;
                            transform: translateX(-50%);
                        }
                        .counter:after{
                            content: "";
                            width: 100%;
                            height: 100%;
                            box-shadow: 0 -10px 10px -10px #000 inset;
                            position: absolute;
                            top: 0;
                            left: 0;
                        }
                        .counter .counter-content{
                            width: 205px;
                            height: 205px;
                            border-radius: 50%;
                            background: #fff;
                            padding: 20px 25px 30px;
                            position: absolute;
                            top: 10px;
                            left: 50%;
                            transform: translateX(-50%);
                        }
                        .counter .counter-content:after{
                            content: "";
                            width: 30px;
                            height: 30px;
                            background: linear-gradient(to top left,#f7b135 49%, transparent 50%);
                            position: absolute;
                            bottom: 73px;
                            left: 50%;
                            transform: translateX(-50%) rotate(45deg);
                        }
                        .counter .counter-value{
                            display: block;
                            font-size: 35px;
                            font-weight: 500;
                            color: #f7b135;
                        }
                        .counter .title{
                            font-size: 18px;
                            color: #505050;
                            letter-spacing: 1px;
                            text-transform: uppercase;
                            margin: 0;
                        }
                        .counter.red:before{ background: linear-gradient(to bottom right,#f36a62,#b7475c); }
                        .counter.red .counter-content:after{ background: linear-gradient(to top left,#b7475c 49%, transparent 50%); }
                        .counter.red .counter-value{ color: #b7475c; }
                        .counter.green:before{ background: linear-gradient(to bottom right,#7cefdd,#31b6a0); }
                        .counter.green .counter-content:after{ background: linear-gradient(to top left,#31b6a0 49%, transparent 50%); }
                        .counter.green .counter-value{ color: #31b6a0; }
                        .counter.purple:before{ background: linear-gradient(to bottom right,#ca70ad,#8a337d); }
                        .counter.purple .counter-content:after{ background: linear-gradient(to top left,#8a337d 49%, transparent 50%); }
                        .counter.purple .counter-value{ color: #8a337d; }
                        @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