counter style : demo 131

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: Poppins.)
                        .counter{
                            color: #fff;
                            background: #729C20;
                            font-family: 'Poppins', sans-serif;
                            text-align: center;
                            width: 200px;
                            height: 200px;
                            padding: 38px 30px;
                            margin: 0 auto;
                            position: relative;
                            z-index: 1;
                            clip-path: polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%);
                        }
                        .counter:before{
                            content: "";
                            background: #8EBF2F;
                            border-radius: 50%;
                            box-shadow: -10px 10px 8px rgba(0, 0, 0, 0.3);
                            position: absolute;
                            top: 15px;
                            left: 15px;
                            right: 15px;
                            bottom: 15px;
                            z-index: -1;
                        }
                        .counter .counter-icon{
                            font-size: 35px;
                            line-height: 35px;
                            margin: 0 0 12px;
                        }
                        .counter .counter-value{
                            font-size: 30px;
                            font-weight: 500;
                            display: block;
                        }
                        .counter h3{
                            font-size: 16px;
                            font-weight: 500;
                            letter-spacing: 0.5px;
                            line-height: 21px;
                            text-transform: capitalize;
                            margin: 0 0 3px;
                        }
                        .counter.blue{ background: #132C55; }
                        .counter.blue:before{ background: #193C72; }
                        @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