counter style : demo 58

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: Exo 2.)
                        :root{
                            --white: #fff;
                            --bg_color1: #27AAE0;
                            --bg_color2: #F0676E;
                            --bg_color3: #24A7AF;
                            --bg_color4: #FF97CF;
                        }
                        .counter{
                            font-family: 'Exo 2', sans-serif;
                            text-align: center;
                            height: 200px;
                            width: 200px;
                            padding: 70px 15px 10px 35px;
                            margin: 0 auto;
                            position: relative;
                            z-index: 1;
                        }
                        .counter:before,
                        .counter:after{
                            content: '';
                            background-color: var(--bg_color1);
                            height: 95%;
                            width: 95%;
                            border-radius: 50%;
                            position: absolute;
                            right: 0;
                            bottom: 0;
                            z-index: -1;
                            transition: all 0.3s;
                        }
                        .counter:hover:before{ box-shadow: 3px 3px 5px #999; }
                        .counter:after{
                            height: 86%;
                            width: 86%;
                            background-color: var(--white);
                            box-shadow: 0 0 5px rgba(0,0,0,0.3) inset;
                            right: 4px;
                            bottom: 4px;
                        }
                        .counter .counter-icon{
                            color: var(--bg_color1);
                            font-size: 65px;
                            text-shadow: 3px 3px 0px  var(--white), -3px -3px 0px  var(--white),
                                        3px -3px 0px  var(--white), -3px 3px 0px  var(--white);
                            line-height: 40px;
                            position: absolute;
                            left: 0;
                            top: 0;
                            transition: all 0.3s;
                        }
                        .counter:hover .counter-icon{ transform:rotateY(360deg); }
                        .counter .counter-value{
                            color: var(--bg_color1);
                            font-size: 30px;
                            font-weight: 600;
                            line-height: 30px;
                            margin: 0 0 10px;
                            display: block;
                        }
                        .counter h3{
                            color: #444;
                            letter-spacing: 1px;
                            margin: 0;
                            text-transform: uppercase;
                            font-size: 18px;
                            font-weight: 600;
                        }
                        .counter.red:before{ background-color: var(--bg_color2); }
                        .counter.red .counter-icon,
                        .counter.red .counter-value{
                            color: var(--bg_color2);
                        }
                        .counter.green:before{ background-color: var(--bg_color3); }
                        .counter.green .counter-icon,
                        .counter.green .counter-value{
                            color: var(--bg_color3);
                        }
                        .counter.pink:before{ background-color: var(--bg_color4); }
                        .counter.pink .counter-icon,
                        .counter.pink .counter-value{
                            color: 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