counter style : demo 28

Web Designing

5426

Web Development

3958

Brand Building

4785

Responsive Design

8456

HTML

                        

Web Designing

5426

Web Development

3958

CSS

                        .counter{
                            width: 160px;
                            height: 160px;
                            border-radius: 50%;
                            background: #f37633;
                            padding: 35px 15px;
                            margin: 0 auto;
                            text-align: center;
                            color: #fff;
                            position: relative;
                            transition: all 0.3s ease 0s;
                        }
                        .counter:hover{ box-shadow: -2px -2px 5px 2px rgba(0,0,0,0.6); }
                        .counter:after{
                            content: "";
                            width: 70px;
                            height: 70px;
                            border-radius: 0 0 50% 50%;
                            background: #f37633;
                            position: absolute;
                            bottom: -5px;
                            right: -25px;
                            transform: rotate(-45deg);
                        }
                        .counter .title{
                            font-size: 17px;
                            font-weight: 600;
                            text-transform: uppercase;
                            margin: 0;
                        }
                        .counter .counter-value{
                            font-size: 35px;
                            font-weight: 600;
                        }
                        .counter .counter-icon{
                            width: 58px;
                            height: 58px;
                            border-radius: 50%;
                            background: rgba(255,255,255,0.1);
                            border: 3px solid #fff;
                            font-size: 35px;
                            line-height: 55px;
                            position: absolute;
                            bottom: 3px;
                            right: -17px;
                            z-index: 1;
                            transition: all 0.3s ease 0s;
                        }
                        .counter:hover .counter-icon{ transform: rotateY(360deg); }
                        .counter.darkblue,
                        .counter.darkblue:after{ background: #2c296c; }
                        .counter.pink,
                        .counter.pink:after{ background: #e41758; }
                        .counter.blue,
                        .counter.blue:after{ background: #0e74bc; }
                        @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