counter style : demo 21

5215

Web Design

1745

Web Development

1286

Brand Building

8723

Responsive Design

HTML

                        
5215

Web Design

1745

Web Development

CSS

                        .demo{ background: #e9e9e9; }
                        .counter{
                            padding: 0 40px;
                            margin: 30px -15px 30px;
                            background: #fff;
                            text-align: center;
                            color: #fff;
                            border: 1px solid #fff;
                        }
                        .counter .counter-content{
                            padding: 10px 15px 30px;
                            margin: -35px 0;
                            border-radius: 25px 0 25px 0;
                            background: #f05235;
                            position: relative;
                            transition: all 0.3s ease 0s;
                        }
                        .counter .counter-content:hover{ box-shadow: 0 0 10px rgba(0,0,0,0.5); }
                        .counter .counter-content:before,
                        .counter .counter-content:after{
                            content: "";
                            width: 35px;
                            height: 35px;
                            background: linear-gradient(45deg,#B43D25 49%,transparent 50%);
                            position: absolute;
                            top: -1px;
                            right: -35px;
                        }
                        .counter .counter-content:after{
                            background: linear-gradient(225deg,#B43D25 49%,transparent 50%);
                            top: auto;
                            right: auto;
                            bottom: -1px;
                            left: -35px;
                        }
                        .counter .counter-icon{ font-size: 50px; }
                        .counter .counter-value{
                            display: block;
                            font-size: 40px;
                            font-weight: 600;
                            margin-bottom: 15px;
                        }
                        .counter .title{
                            font-size: 16px;
                            text-transform: uppercase;
                            margin: 0;
                        }
                        .counter.yellow .counter-content{ background: #ff9801; }
                        .counter.yellow .counter-content:before{ background: linear-gradient(45deg,#b46c00 49%,transparent 50%); }
                        .counter.yellow .counter-content:after{ background: linear-gradient(225deg,#b46c00 49%,transparent 50%); }
                        .counter.green .counter-content{ background: #8cc63e; }
                        .counter.green .counter-content:before{ background: linear-gradient(45deg,#618e27 49%,transparent 50%); }
                        .counter.green .counter-content:after{ background: linear-gradient(225deg,#618e27 49%,transparent 50%); }
                        .counter.blue .counter-content{ background: #01abcc; }
                        .counter.blue .counter-content:before{ background: linear-gradient(45deg,#0088a2 49%,transparent 50%); }
                        .counter.blue .counter-content:after{ background: linear-gradient(225deg,#0088a2 49%,transparent 50%); }
                        @media only screen and (max-width: 990px){
                            .counter{ margin-bottom: 70px; }
                        }
                        @media only screen and (max-width: 767px){
                            .counter{ margin-bottom: 90px; }
                        }
                    

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