counter style : demo 65

1823

Web Designing

1523

Web Development

1356

Brand Building

1689

Responsive Design

HTML

(Icons : Fontawesome & CSS Framwork: Bootstrap)
                        
1823

Web Designing

1523

Web Development

CSS

(Fonts required: Amaranth.)
                        .counter{
                            font-family: 'Amaranth', sans-serif;
                            text-align: center;
                            width: 200px;
                            margin: 0 auto;
                            position: relative;
                        }
                        .counter .counter-value{
                            color: #fff;
                            background: linear-gradient(to bottom,#9E3221,#D24933);
                            font-size: 40px;
                            font-weight: 600;
                            text-shadow: 2px 3px 6px rgba(0,0,0,0.6);
                            padding: 7px 0 25px;
                            margin-bottom: 40px;
                            border-radius: 20px;
                            border: 2px solid #9E3221;
                            display: block;
                        }
                        .counter .counter-icon{
                            color: #9E3221;
                            background: linear-gradient(to bottom,#9E3221,#D24933);
                            font-size: 45px;
                            line-height: 80px;
                            width: 80px;
                            height: 80px;
                            border: 2px solid #9E3221;
                            border-radius: 15px;
                            transform: translateX(-50%) rotate(0);
                            position: absolute;
                            top: 37%;
                            left: 50%;
                            z-index: 1;
                            transition: all 0.3s;
                        }
                        .counter:hover .counter-icon{
                            box-shadow: 0 0 10px #000;
                            transform: translateX(-50%) rotate(360deg);
                        }
                        .counter .counter-icon:before{
                            content: '';
                            background-color: #fff;
                            height: 100%;
                            width: 100%;
                            border-radius: 15px;
                            transform: scale(0.85);
                            position: absolute;
                            left: 0;
                            top: 0;
                            z-index: -1;
                        }
                        .counter h3{
                            color:#000;
                            background: #F3F5F4;
                            font-size: 20px;
                            padding:30px 10px 15px;
                            margin: 0;
                            border-radius:20px;
                            box-shadow: 5px 5px 5px rgba(0,0,0,0.4);
                        }
                        .counter.green .counter-value,
                        .counter.green .counter-icon{
                            background: linear-gradient(to bottom,#72873D,#B8BA2F);
                            border: 2px solid #72873D;
                        }
                        .counter.green .counter-icon{ color: #72873D; }
                        .counter.blue .counter-value,
                        .counter.blue .counter-icon{
                            background: linear-gradient(to bottom,#36556C,#447F8F);
                            border: 2px solid #36556C;
                        }
                        .counter.blue .counter-icon{ color: #36556C; }
                        .counter.orange .counter-value,
                        .counter.orange .counter-icon{
                            background: linear-gradient(to bottom,#BE5428,#EC8324);
                            border: 2px solid #BE5428;
                        }
                        .counter.orange .counter-icon{ color: #BE5428; }
                        @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