counter style : demo 15

Web Design

10856

Web Development

12346

Brand Building

10056

Responsive Design

8509

HTML

                        

Web Design

10856

Web Development

12346

CSS

                        .counter{
                            width: 175px;
                            height: 175px;
                            background: rgba(255,255,255,0.3);
                            text-align: center;
                            margin: 30px auto;
                            position: relative;
                            z-index: 1;
                        }
                        .counter:before{
                            content: "";
                            width: 100%;
                            height: 100%;
                            box-shadow: 0 0 15px rgba(0,0,0,0.5) inset;
                            position: absolute;
                            top: 0;
                            left: 0;
                            transform: rotate(45deg);
                        }
                        .counter .counter-icon{
                            width: 80px;
                            height: 80px;
                            margin: 0 auto 10px;
                            font-size: 50px;
                            color: #fff;
                            position: relative;
                            top: -15px;
                        }
                        .counter .counter-icon:before{
                            content: "";
                            width: 100%;
                            height: 100%;
                            background: linear-gradient(135deg,#f98c29 49%,#e87d2d 50%);
                            position: absolute;
                            top: -5px;
                            left: 0;
                            transform: rotate(45deg);
                            z-index: -2;
                            transition: all 0.2s ease 0s;
                        }
                        .counter:hover .counter-icon:before{ transform: rotate(225deg); }
                        .counter .title{
                            font-size: 17px;
                            font-weight: 600;
                            color: #404040;
                            text-transform: uppercase;
                            margin: 0 0 5px 0;
                        }
                        .counter .counter-value{
                            display: block;
                            font-size: 25px;
                            font-weight: 700;
                            color: #f98c29;
                        }
                        .counter.darkblue .counter-icon:before{ background:linear-gradient(135deg,#296b8f 49%,#105670 50%); }
                        .counter.darkblue .counter-value{ color: #105670; }
                        .counter.blue .counter-icon:before{ background: linear-gradient(135deg,#14bac6 49%,#13aeb0 50%); }
                        .counter.blue .counter-value{ color: #13aeb0; }
                        .counter.red .counter-icon:before{ background:linear-gradient(135deg,#e44251 49%,#db4256 50%); }
                        .counter.red .counter-value{ color: #db4256; }
                        @media only screen and (max-width: 990px){
                            .counter{ margin-bottom: 100px; }
                        }
                    

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