counter style : demo 2

840

Web Design

60

Web Development

480

Brand Building

750

Responsive Design

HTML

                        
840

Web Design

60

Web Development

CSS

                        .demo{ background: #101c33; }
                        .counter{ text-align: center; }
                        .counter .counter-icon{
                            display: inline-block;
                            width: 150px;
                            height: 150px;
                            line-height: 150px;
                            border-radius: 50%;
                            border: 3px solid #ff6fca;
                            font-size: 40px;
                            color: #ff6fca;
                            margin-bottom: 20px;
                            position: relative;
                        }
                        .counter .counter-icon:before{
                            content: "";
                            border: 2px solid #ff6fca;
                            border-radius: 50%;
                            position: absolute;
                            top: 5px;
                            left: 5px;
                            right: 5px;
                            bottom: 5px;
                        }
                        .counter .counter-value{
                            display: block;
                            font-size: 55px;
                            color: #ff6fca;
                            margin-bottom: 5px;
                        }
                        .counter .title{
                            font-size: 20px;
                            color: #fff;
                            text-transform: uppercase;
                        }
                        .counter.yellow .counter-icon,
                        .counter.yellow .counter-icon:before,
                        .counter.yellow .counter-value{
                            color: #edd859;
                            border-color: #edd859;
                        }
                        .counter.blue .counter-icon,
                        .counter.blue .counter-icon:before,
                        .counter.blue .counter-value{
                            color: #2dc1fb;
                            border-color: #2dc1fb;
                        }
                        .counter.green .counter-icon,
                        .counter.green .counter-icon:before,
                        .counter.green .counter-value{
                            color: #3ed35a;
                            border-color: #3ed35a;
                        }
                        @media only screen and (max-width: 990px){
                            .counter{ margin-bottom: 40px; }
                        }
                    

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