counter style : demo 85

1963

Web Designing

1854

Web Development

1756

Brand Building

1823

Responsive Design

HTML

(Icons : Fontawesome & CSS Framwork: Bootstrap)
                        
1963

Web Designing

1854

Web Development

CSS

(Fonts required: Encode Sans Expanded.)
                        .counter{
                            font-family: 'Encode Sans Expanded', sans-serif;
                            text-align: center;
                            position: relative;
                        }
                        .counter:before{
                            content: '';
                            background-color: #CE1B53;
                            height: 26px;
                            width: 200px;
                            transform: translateX(-50%);
                            position: absolute;
                            top: 60px;
                            left: 50%;
                            clip-path: polygon(10% 0, 90% 0, 100% 100%, 0% 100%);
                        }
                        .counter .counter-icon{
                            color: #fff;
                            background: #CE1B53;
                            font-size: 40px;
                            line-height: 63px;
                            height: 60px;
                            width: 60px;
                            margin: 0 auto 25px;
                            transition: all 0.3s;
                        }
                        .counter:hover .counter-icon{ transform: rotateY(360deg); }
                        .counter .counter-content{
                            color: #CE1B53;
                            background-color: #fff;
                            width: 200px;
                            padding: 20px 10px;
                            margin: 0 auto;
                        }
                        .counter .counter-value{
                            font-size: 30px;
                            font-weight: 600;
                            letter-spacing: 1px;
                            margin: 0 0 7px;
                            display: block;
                        }
                        .counter h3{
                            font-size: 16px;
                            font-weight: 500;
                            letter-spacing: 1px;
                            text-transform: capitalize;
                            margin: 0;
                        }
                        .counter.orange:before,
                        .counter.orange .counter-icon{
                            background-color: #F06342;
                        }
                        .counter.orange .counter-content{ color: #F06342; }
                        .counter.green:before,
                        .counter.green .counter-icon{
                            background-color: #22A2A5;
                        }
                        .counter.green .counter-content{ color: #22A2A5; }
                        .counter.gray:before,
                        .counter.gray .counter-icon{
                            background-color: #425472;
                        }
                        .counter.gray .counter-content{ color: #425472; }
                        @media 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