counter style : demo 33

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: Roboto.)
                        .counter{
                            color: #EC574C;
                            font-family: 'Roboto', sans-serif;
                            text-align: center;
                        }
                        .counter svg{
                            transition: all 1.5s ease 0s;
                        }
                        .counter:hover svg{
                            transform: rotate(360deg);
                        }
                        .counter svg polygon{
                            fill:url(#counter-bg);
                            stroke: none;
                        }
                        .counter .counter-content{
                            background: linear-gradient(to right,#F05851,#C63F3D);
                            height: 145px;
                            width: 145px;
                            padding: 30px 5px;
                            border-radius: 50%;
                            box-shadow: 2px 0 0 1px rgba(0,0,0,0.4),3px 0 10px rgba(0,0,0,0.5);
                            transform: translateX(-51%);
                            position: absolute;
                            left: 51%;
                            top: 32px;
                            z-index: 1;
                        }
                        .counter .counter-content:before{
                            content: '';
                            height: 85%;
                            width: 85%;
                            background-color: #fff;
                            border-radius: 50%;
                            box-shadow: 0 0 20px rgba(0,0,0,0.2) inset;
                            transform: translateX(-50%) translateY(-50%);
                            position: absolute;
                            left: 50%;
                            top: 50%;
                            z-index: -1;
                            transition: all 0.3s ease 0s;
                        }
                        .counter .counter-value{
                            font-size: 30px;
                            font-weight: 600;
                            margin-bottom: 5px;
                            display: block;
                        }
                        .counter h3{
                            color: #101010;
                            font-size: 14px;
                            font-weight: 600;
                            text-transform: uppercase;
                            padding: 0 15px;
                            margin: 0;
                        }
                        .counter.yellow polygon{ fill: url(#counter-bg2); }
                        .counter.yellow .counter-content{
                            background: linear-gradient(to right,#FCB414,#E48A1A);
                        }
                        .counter.yellow .counter-value{ color: #FCB414; }
                        .counter.blue polygon{ fill: url(#counter-bg3); }
                        .counter.blue .counter-content{
                            background: linear-gradient(to right,#5DD3F8,#088597);
                        }
                        .counter.blue .counter-value{ color: #0AC1F9; }
                        .counter.green polygon{ fill: url(#counter-bg4); }
                        .counter.green .counter-content{
                            background: linear-gradient(to right,#C5D03A,#88891E);
                        }
                        .counter.green .counter-value{ color: #C2CC24; }
                        @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