counter style : demo 30

1245

Web Designing

1359

Brand Building

1178

Web Development

1071

Responsive Design

HTML

                        
1245

Web Designing

1359

Brand Building

CSS

                        .counter{
                            padding-bottom: 25px;
                            position: relative;
                            z-index: 1;
                        }
                        .counter:before,
                        .counter:after{
                            content: '';
                            height: 86%;
                            width: 160px;
                            background-color: #EB4700;
                            transform: translateX(-50%) translateY(-50%) rotate(90deg);
                            position: absolute;
                            left: 50%;
                            top: 45%;
                            z-index: -1;
                        }
                        .counter:after{
                            background-color: transparent;
                            border-top: 10px dotted #EB4700;
                            height: 2px;
                            width: 80px;
                            transform: translateX(-50%) translateY(0) rotate(0);
                            top: auto;
                            left: 50%;
                            bottom: 0;
                        }
                        .counter-content{
                            color: #fff;
                            background-color: #EB4700;
                            text-align: center;
                            border: 5px solid #fff;
                            padding: 20px;
                            margin: 0 auto;
                            width: 170px;
                            transition: all 0.3s;
                        }
                        .counter:hover .counter-content{ box-shadow: 0 0 10px rgba(0,0,0,0.9); }
                        .counter-icon{
                            color: #EB4700;
                            background-color: #fff;
                            font-size: 40px;
                            line-height: 70px;
                            height: 70px;
                            width: 70px;
                            box-shadow: 0 0 10px rgba(0,0,0,0.5);
                            border-radius: 50%;
                            margin-bottom: 10px;
                            display: inline-block;
                            transition: all 0.3s;
                        }
                        .counter:hover .counter-icon{ transform: rotateX(360deg); }
                        .counter .counter-value{
                            font-size: 40px;
                            font-weight: 700;
                            margin-bottom: 10px;
                            transition: all 0.3s;
                        }
                        .counter h3{
                            font-size: 15px;
                            letter-spacing: 1px;
                            text-transform: uppercase;
                            margin: 0;
                            transition: all 0.3s;
                        }
                        .counter:hover h3{text-shadow: 0 0 2px rgba(0,0,0,0.9);}
                        .counter.blue .counter-content{ background-color: #1ca2d8; }
                        .counter.blue:before{ background-color: #1ca2d8; }
                        .counter.blue:after{ border-top-color: #1ca2d8; }
                        .counter.blue .counter-icon{ color: #1ca2d8; }
                        .counter.green .counter-content{ background-color: #46a450; }
                        .counter.green:before{ background-color: #46a450; }
                        .counter.green:after{ border-top-color: #46a450; }
                        .counter.green .counter-icon{ color: #46a450; }
                        .counter.purple .counter-content{ background-color: #8031d3; }
                        .counter.purple:before{ background-color: #8031d3; }
                        .counter.purple:after{ border-top-color: #8031d3; }
                        .counter.purple .counter-icon{ color: #8031d3; }
                        @media 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