counter style : demo 25

5560

Web Designing

3362

Web Development

4852

Brand Building

8815

Responsive Design

HTML

                        
5560

Web Designing

3362

Web Development

CSS

                        .counter{
                            width: 200px;
                            padding-top: 10px;
                            text-align: center;
                            margin: 0 auto;
                            z-index: 1;
                            position: relative;
                        }
                        .counter .counter-icon{
                            width: 60px;
                            height: 60px;
                            line-height: 57px;
                            border-radius: 50%;
                            background: #fff;
                            font-size: 35px;
                            color: #f63852;
                            margin: 0 auto 25px;
                            position: relative;
                            transition: all 0.3s ease 0s;
                        }
                        .counter:hover .counter-icon{ box-shadow: 0 0 10px rgba(0,0,0,0.5) inset; }
                        .counter .counter-icon:before{
                            content: "";
                            width: 130%;
                            height: 130%;
                            border-radius: 50% 50% 0 50%;
                            background: #f63852;
                            position: absolute;
                            top: 50%;
                            left: 50%;
                            z-index: -1;
                            transform: translate(-50%, -50%) rotate(45deg);
                        }
                        .counter .counter-content{
                            padding: 20px 20px 15px;
                            background: linear-gradient(143deg,#f75f74 49%,#f63852 50%);
                        }
                        .counter .counter-value{
                            display: block;
                            padding: 5px 0;
                            background: #fff;
                            font-size: 40px;
                            font-weight: 600;
                            color: #f63852;
                            margin-bottom: 10px;
                            position: relative;
                            transition: all 0.3s ease 0s;
                        }
                        .counter:hover .counter-value{ box-shadow: 0 0 7px rgba(0,0,0,0.5) inset, 0 0 0 15px #fff inset,0 0 10px #000; }
                        .counter .title{
                            font-size: 20px;
                            color: #fff;
                            letter-spacing: 1px;
                            text-transform: uppercase;
                            margin: 0;
                        }
                        .counter.yellow .counter-icon,
                        .counter.yellow .counter-value{ color: #ffc219; }
                        .counter.yellow .counter-icon:before{ background: #ffc219; }
                        .counter.yellow .counter-content{ background: linear-gradient(143deg,#fdce48 49%,#ffc219 50%); }
                        .counter.blue .counter-icon,
                        .counter.blue .counter-value{ color: #2cb3c7; }
                        .counter.blue .counter-icon:before{ background: #2cb3c7; }
                        .counter.blue .counter-content{ background: linear-gradient(143deg,#58c0d4 49%,#2cb3c7 50%); }
                        .counter.purple .counter-icon,
                        .counter.purple .counter-value{ color: #9f1068; }
                        .counter.purple .counter-icon:before{ background: #9f1068; }
                        .counter.purple .counter-content{ background: linear-gradient(143deg,#ad4388 49%,#9f1068 50%); }
                        @media only 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