counter style : demo 56

1823

Web Designing

1524

Web Development

1589

Brand Building

1710

Responsive Design

HTML

(Icons : Fontawesome & CSS Framwork: Bootstrap)
                        
1823

Web Designing

1524

Web Development

CSS

(Fonts required: Sarabun.)
                        :root{
                            --text: #fff;
                            --border: #666666;
                            --bg_color1: linear-gradient(135deg, #e74c3c 49%, #c0392b 50%);
                            --bg_color2: linear-gradient(135deg, #2ecc71 49%, #27ae60 50%);
                            --bg_color3: linear-gradient(135deg, #3498db 49%, #2980b9 50%);
                            --bg_color4: linear-gradient(135deg, #fd9644 49%, #fa8231 50%);
                        }
                        .counter{ font-family: 'Sarabun', sans-serif; }
                        .counter .counter-content{
                            color: var(--text);
                            background: var(--bg_color1);
                            text-align: center;
                            height: 180px;
                            width: 180px;
                            padding: 20px 25px;
                            margin: 0 auto;
                            border: 4px solid var(--border);
                            box-shadow: 0 0 0 6px var(--text) inset;
                            border-radius: 50%;
                            position: relative;
                            z-index: 1;
                            transition: all 0.3s ease 0s;
                        }
                        .counter .counter-content:before,
                        .counter .counter-content:after{
                            content: '';
                            background-color: var(--border);
                            height: 100%;
                            width: 4px;
                            position: absolute;
                            left: -20px;
                            top: 0;
                        }
                        .counter .counter-content:after{
                            height: 4px;
                            width: 20px;
                            transform: translateY(-50%);
                            top: 50%;
                            z-index: -1;
                        }
                        .counter .counter-icon{
                            font-size: 30px;
                            line-height: 30px;
                            transition: all 0.3s ease 0s;
                        }
                        .counter .counter-content:hover .counter-icon{ transform: rotateX(360deg); }
                        .counter .counter-value{
                            font-size: 30px;
                            font-weight: 600;
                            line-height: 50px;
                        }
                        .counter h3{
                            font-size: 16px;
                            font-weight: 600;
                            text-transform: uppercase;
                            margin: 0;
                        }
                        .counter.green .counter-content{ background: var(--bg_color2); }
                        .counter.blue .counter-content{ background: var(--bg_color3); }
                        .counter.orange .counter-content{ background: var(--bg_color4); }
                        @media screen and (max-width:990px){
                            .counter{ margin-bottom: 40px; }
                        }
                    

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