counter style : demo 37

1245

Web Designing

1359

Brand Building

1178

Web Development

1071

Responsive Design

HTML

(CSS Framwork: Bootstrap)
                        
1245

Web Designing

1359

Brand Building

CSS

(Fonts required: PT Sans.)
                        .counter{
                            color: #8437CB;
                            font-family: 'PT Sans', sans-serif;
                            text-align: center;
                            width: 200px;
                            padding-bottom: 30px;
                            margin: 0 auto;
                            position: relative;
                            z-index: 1;
                        }
                        .counter:before,
                        .counter:after{
                            content: '';
                            height: 50px;
                            width: 50px;
                            border: 10px solid #8437CB;
                            border-left: 0 solid #000;
                            border-top: 0 solid #000;
                            border-radius: 3px;
                            transform: translateX(-50%) scale(1,0.5) rotate(45deg) ;
                            position: absolute;
                            left: 50.5%;
                            bottom: 7px;
                        }
                        .counter:after{ bottom: -7px; }
                        .counter .counter-content{
                            background: linear-gradient(to bottom,#D7487B,#8031D3);
                            height: 210px;
                            width: 200px;
                            padding: 50px 0;
                            position: relative;
                            -webkit-clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
                            clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
                        }
                        .counter .counter-content:before{
                            content: '';
                            height: 85%;
                            width: 85%;
                            background-color: #fff;
                            transform:translateX(-50%) translateY(-50%);
                            position: absolute;
                            left: 50%;
                            top: 50%;
                            z-index: -1;
                            -webkit-clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
                            clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
                        }
                        .counter .counter-value{
                            font-size: 40px;
                            font-weight:700;
                            margin-bottom: 5px;
                            display: block;
                            transition:all 0.3s;
                        }
                        .counter:hover .counter-value{ text-shadow: 0 0 2px rgba(0,0,0,0.5); }
                        .counter h3{
                            font-size: 18px;
                            font-weight: 600;
                            letter-spacing: 1px;
                            text-transform: uppercase;
                            padding: 0 20px;
                            margin: 0;
                            transition: all 0.3s;
                        }
                        .counter:hover h3{ transform: rotateX(360deg); }
                        .counter.yellow{ color: #EB5E04; }
                        .counter.yellow:before{ border-color: #EB5E04; }
                        .counter.yellow:after{ border-color: #EB5E04; }
                        .counter.yellow .counter-content{ background: linear-gradient(to bottom,#F2C33A,#EB5E04); }
                        .counter.blue{ color: #796FE7; }
                        .counter.blue:before{ border-color: #796FE7; }
                        .counter.blue:after{ border-color: #796FE7; }
                        .counter.blue .counter-content{ background: linear-gradient(to bottom,#4093F2,#796FE7); }
                        .counter.red{ color: #ad1d1d; }
                        .counter.red:before{ border-color: #ad1d1d; }
                        .counter.red:after{ border-color: #ad1d1d; }
                        .counter.red .counter-content{ background: linear-gradient(to bottom,#f73636,#ad1d1d); }
                        @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