counter style : demo 57

1823

Web Designing

1524

Web Development

1589

Brand Building

1710

Responsive Design

HTML

(Icons : Fontawesome & CSS Framwork: Bootstrap)
                        
1823

Web Designing

1524

Web Development

CSS

(Fonts required: Roboto Condensed.)
                        :root{
                            --text: #fff;
                            --bg_color1: #ec22c0;
                            --bg_color2: #D8BA13;
                            --bg_color3: #0F7EDA;
                            --bg_color4: #03A338;
                        }
                        .counter{
                            font-family: 'Roboto Condensed', sans-serif;
                            text-align: center;
                            width: 205px;
                            padding: 0 8px 10px;
                            margin: 0 auto;
                            position: relative;
                            z-index: 1;
                        }
                        .counter:before{
                            content: '';
                            background-color: var(--bg_color1);
                            width: 100%;
                            height: 80%;
                            position: absolute;
                            left: 0;
                            bottom: 0;
                            z-index: -1;
                            -webkit-clip-path: polygon(20% 0%, 80% 0%, 100% 100%, 0% 100%);
                            clip-path: polygon(20% 0%, 80% 0%, 100% 100%, 0% 100%);
                        }
                        .counter .counter-icon{
                            color: var(--bg_color1);
                            background: var(--text);
                            font-size: 50px;
                            line-height:110px;
                            width: 110px;
                            height: 110px;
                            margin: 0 auto 15px;
                            border-radius: 50%;
                            box-shadow: 0 -6px 0 -2px var(--bg_color1);
                            transition: all 0.3s;
                        }
                        .counter:hover .counter-icon{ transform: rotateX(360deg) rotateY(360deg); }
                        .counter .counter-value{
                            color: var(--text);
                            font-size: 38px;
                            font-weight: 700;
                            margin-bottom: 10px;
                            display: block;
                        }
                        .counter h3{
                            color: var(--text);
                            font-size: 18px;
                            font-weight: 700;
                            letter-spacing: 1px;
                            text-transform: uppercase;
                            text-shadow: 0 0 2px #555;
                            margin: 0;
                        }
                        .counter.golden:before{ background-color: var(--bg_color2); }
                        .counter.golden .counter-icon{
                            color: var(--bg_color2);
                            box-shadow: 0 -6px 0 -2px var(--bg_color2);
                        }
                        .counter.blue:before{ background-color: var(--bg_color3); }
                        .counter.blue .counter-icon{
                            color: var(--bg_color3);
                            box-shadow: 0 -6px 0 -2px var(--bg_color3);
                        }
                        .counter.green:before{ background-color: var(--bg_color4); }
                        .counter.green .counter-icon{
                            color: var(--bg_color4);
                            box-shadow: 0 -6px 0 -2px var(--bg_color4);
                        }
                        @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