counter style : demo 34

1245

Web Designing

1359

Brand Building

1178

Web Development

1071

Responsive Design

HTML

(Icons : Fontawesome & CSS Framwork: Bootstrap)
                        
                        
1245

Web Designing

1359

Brand Building

CSS

(Fonts required: PT Sans.)
                        .counter{
                            font-family: 'PT Sans', sans-serif;
                            text-align: center;
                            padding-bottom: 15px;
                            position: relative;
                        }
                        .counter:after{
                            content: '';
                            height: 20px;
                            width: 150px;
                            background: radial-gradient(rgba(0,0,0,0.3),#fff,#fff);
                            transform: translateX(-50%);
                            position: absolute;
                            left: 50%;
                            bottom: 0;
                        }
                        .counter .counter-content{
                            color: #fff;
                            height: 180px;
                            width: 180px;
                            padding: 30px 10px;
                            margin: 4px auto 0;
                            border-radius: 50%;
                            border: 7px solid #fff;
                            display: block;
                            transform: translateX(-50%);
                            position: absolute;
                            left: 50%;
                            top: 10px;
                            transition: all 0.3s ease 0s;
                        }
                        .counter:hover .counter-content{ box-shadow: 0 0 20px rgba(0,0,0,0.5); }
                        .counter .counter-icon{
                            font-size: 40px;
                            transform: translateX(-50%) rotateY(360deg);
                            position: absolute;
                            left: 50%;
                            bottom: -63px;
                            z-index: 1;
                            transition: all 0.5s ease 0s;
                        }
                        .counter:hover .counter-icon{ transform: translateX(-50%) rotateY(0); }
                        .counter .counter-value{
                            font-size: 40px;
                            font-weight: 600;
                            display: block;
                        }
                        .counter:hover .counter-value{ text-shadow: 0 0 4px #505050; }
                        .counter h3{
                            font-size: 18px;
                            font-weight: 600;
                            letter-spacing: 1px;
                            text-transform: uppercase;
                            padding: 7px 10px;
                            margin: 0;
                        }
                        @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