counter style : demo 17

15305

Web Design

779

Web Development

1150

Brand Building

2120

Responsive Design

HTML

                        
15305

Web Design

779

Web Development

CSS

                        .counter{
                            width: 220px;
                            height: 200px;
                            padding: 15px;
                            margin: 0 auto;
                            border: 10px solid #006aa4;
                            border-radius: 50% 0 50% 50%;
                            text-align: center;
                            color: #006aa4;
                            position: relative;
                            transition: all 0.3s ease 0s;
                        }
                        .counter:hover{ box-shadow: 0 0 10px rgba(0,0,0,0.4) inset,0 0 10px rgba(0,0,0,0.4); }
                        .counter:before,
                        .counter:after{
                            content: "";
                            width: 15px;
                            height: 15px;
                            border-radius: 50%;
                            background: #006aa4;
                            position: absolute;
                            bottom: 0;
                            left: 0;
                            z-index: 1;
                        }
                        .counter:after{
                            bottom: 14px;
                            left: 13px;
                        }
                        .counter .counter-value{
                            display: block;
                            font-size: 40px;
                            font-weight: 700;
                        }
                        .counter .title{
                            font-size: 17px;
                            font-weight: 900;
                            text-transform: capitalize;
                            letter-spacing: 1px;
                            margin: 0 0 8px 0;
                        }
                        .counter .counter-icon{
                            font-size: 40px;
                            color: #505050;
                        }
                        .counter .counter-icon:before{
                            content: "";
                            width: 45px;
                            height: 45px;
                            border-radius: 50%;
                            border: 10px solid #006aa4;
                            border-bottom: 10px solid #fff;
                            border-left: 10px solid #fff;
                            background: #fff;
                            position: absolute;
                            bottom: 0;
                            left: -1px;
                        }
                        .counter.red{ border-color: #fe3e2f; }
                        .counter.red:before,
                        .counter.red:after{ background: #fe3e2f; }
                        .counter.red .counter-icon:before{
                            border-top-color: #fe3e2f;
                            border-right-color: #fe3e2f;
                        }
                        .counter.red .counter-value,
                        .counter.red .title{ color: #fe3e2f; }
                        .counter.green{ border-color: #00bb5d; }
                        .counter.green:before,
                        .counter.green:after{ background: #00bb5d; }
                        .counter.green .counter-icon:before{
                            border-top-color: #00bb5d;
                            border-right-color: #00bb5d;
                        }
                        .counter.green .counter-value,
                        .counter.green .title{ color: #00bb5d; }
                        .counter.yellow{ border-color: #f7b03e; }
                        .counter.yellow:before,
                        .counter.yellow:after{ background: #f7b03e; }
                        .counter.yellow .counter-icon:before{
                            border-top-color: #f7b03e;
                            border-right-color: #f7b03e;
                        }
                        .counter.yellow .counter-value,
                        .counter.yellow .title{ color: #f7b03e; }
                        @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