counter style : demo 159

Web Designing

1963

Web Development

1854

Brand Building

1756

Responsive Design

1823

HTML

(Icons : Fontawesome & CSS Framwork: Bootstrap)
                        

Web Designing

1963

Web Development

1854

CSS

(Fonts required: Roboto Condensed.)
                    .counter{
                        color: #444;
                        background-color: #fff;
                        font-family: 'Roboto Condensed', sans-serif;
                        text-align: center;
                        width: 200px;
                        padding: 20px 15px;
                        margin: 0 auto;
                        box-shadow: 0 0 10px rgba(0,0,0,0.3),7px -7px #FCAA02;
                        border-radius: 7px;
                    }
                    .counter h3{
                        color: #fff;
                        background-color: #FCAA02;
                        font-size: 16px;
                        font-weight: 700;
                        letter-spacing: 0.5px;
                        text-transform: uppercase;
                        padding: 6px 6px 5px;
                        margin: 0 0 16px;
                        border-radius: 5px;
                    }
                    .counter .counter-value{
                        font-size: 35px;
                        line-height: 35px;
                        font-weight: 700;
                        text-shadow: 5px 5px rgba(0,0,0,0.15);
                        margin: 0 0 15px;
                        display: block;
                    }
                    .counter .counter-icon{
                        color: #FCAA02;
                        font-size: 35px;
                        line-height: 35px;
                    }
                    .counter.pink{ box-shadow: 0 0 10px rgba(0,0,0,0.3), 7px -7px #FF664F; }
                    .counter.pink h3{ background-color: #FF664F; }
                    .counter.pink .counter-icon{ color: #FF664F; }
                    .counter.blue{ box-shadow: 0 0 10px rgba(0,0,0,0.3), 7px -7px #0A88FD; }
                    .counter.blue h3{ background-color: #0A88FD; }
                    .counter.blue .counter-icon{ color: #0A88FD; }
                    .counter.green{ box-shadow: 0 0 10px rgba(0,0,0,0.3), 7px -7px #13637E; }
                    .counter.green h3{ background-color: #13637E; }
                    .counter.green .counter-icon{ color: #13637E; }
                    @media 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