counter style : demo 6

1689

Web Design

851

Web Development

1524

Brand Building

1652

Responsive Design

HTML

                        
1689

Web Design

851

Web Development

CSS

                        .demo{ background: #e0ffff; }
                        .counter{
                            width: 240px;
                            height: 240px;
                            border-radius: 50%;
                            background: #3f68cc;
                            text-align: center;
                            padding: 17px;
                            margin: 0 auto;
                            overflow: hidden;
                            position: relative;
                            z-index: 1;
                        }
                        .counter:before,
                        .counter:after{
                            content: "";
                            width: 100%;
                            height: 7px;
                            background: #fff;
                            margin: 0 auto;
                            position: absolute;
                            top: 50%;
                            left: 0;
                            right: 0;
                            transform: translateY(-50%);
                            z-index: -1;
                        }
                        .counter:after{
                            width: 7px;
                            height: 100%;
                        }
                        .counter .counter-content{
                            width: 100%;
                            height: 100%;
                            border-radius: 50%;
                            background: #fff;
                            padding: 23% 10px 10px 10px;
                        }
                        .counter .counter-value{
                            display: block;
                            font-size: 60px;
                            font-weight: 600;
                            color: #3f68cc;
                            line-height: 80px;
                        }
                        .counter .title{
                            font-size: 18px;
                            color: #202020;
                            font-style: italic;
                            letter-spacing: 1px;
                            text-transform: capitalize;
                            margin: 0;
                        }
                        .counter.yellow{ background: #f6931e; }
                        .counter.yellow .counter-value{ color: #f6931e; }
                        .counter.red{ background: #cc171e; }
                        .counter.red .counter-value{ color: #cc171e; }
                        .counter.green{ background: #2fcea5; }
                        .counter.green .counter-value{ color: #2fcea5; }
                        @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