counter style : demo 63

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: Source Sans Pro.)
                        :root{
                            --color_1: #EB4700;
                            --color_2: #01D1D4;
                            --color_3: #FEB900;
                            --color_4: #d327f9;
                        }
                        .demo{ background-color: #d9d9d9; }
                        .counter{
                            color: var(--color_1);
                            font-family: 'Source Sans Pro', sans-serif;
                            text-align: center;
                            width: 210px;
                            margin: 0 auto;
                            position: relative;
                            z-index: 1;
                        }
                        .counter .counter-icon{
                            color: #fff;
                            background-color: var(--color_1);
                            font-size: 40px;
                            line-height: 70px;
                            height: 70px;
                            width: 70px;
                            box-shadow: 0 0 10px rgba(0,0,0,0.5);
                            border-radius: 50%;
                            transform: translateY(-50%);
                            position: absolute;
                            left: 0;
                            top: 50%;
                            z-index: 1;
                        }
                        .counter .counter-content{
                            background:radial-gradient(#e9e9e9,#fff,#e9e9e9,#fff);
                            min-height: 140px;
                            padding: 20px 10px 5px 80px;
                            border-radius: 30px;
                            -webkit-clip-path: polygon(50% 0, 100% 0, 100% 100%, 50% 100%, 0 50%);
                            clip-path: polygon(50% 0, 100% 0, 100% 100%, 50% 100%, 0 50%);
                        }
                        .counter .counter-value{
                            font-size: 40px;
                            font-weight:700;
                            line-height: 50px;
                            display: block;
                            transition: all 0.3s;
                        }
                        .counter:hover .counter-value{ text-shadow: 0 0 5px #fff; }
                        .counter h3{
                            font-size: 17px;
                            font-weight: 600;
                            letter-spacing: 1px;
                            text-transform: uppercase;
                            margin: 0;
                            transition:all 0.3s;
                        }
                        .counter:hover h3{ transform:rotateX(360deg); }
                        .counter.blue{ color: var(--color_2); }
                        .counter.blue .counter-icon{ background-color: var(--color_2); }
                        .counter.yellow{ color: var(--color_3); }
                        .counter.yellow .counter-icon{ background-color: var(--color_3); }
                        .counter.purple{ color: var(--color_4); }
                        .counter.purple .counter-icon{ background-color: var(--color_4); }
                        @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