counter style : demo 45

Web Designing

1245

Responsive Design

1189

Web Development

1370

Brand Building

1182

HTML

(Icons : Fontawesome & CSS Framwork: Bootstrap)
                        

Web Designing

1245

Responsive Design

1189

CSS

(Fonts required: Oxygen.)
                        :root{
                            --white: #fff;
                            --black: #000;
                            --color_1: #A51A44;
                            --color_2: #1DA493;
                            --color_3: #0BA4C4;
                            --color_4: #EC8F0E;
                        }
                        .demo{ background-color: #F0F5F8; }
                        .counter{
                            font-family: 'Oxygen', sans-serif;
                            text-align: center;
                            padding-bottom: 80px;
                            position: relative;
                            z-index: 1;
                        }
                        .counter:before,
                        .counter:after{
                            content: '';
                            background-color: var(--white);
                            height: 100px;
                            width: 80px;
                            box-shadow:0 0 5px  rgba(0,0,0,0.5),0 -10px 10px -10px rgba(0,0,0,0.5) inset;
                            transform: translateX(-50%);
                            position: absolute;
                            left: 50%;
                            bottom: 20px;
                            z-index: -1;
                        }
                        .counter:after{
                            background-color: var(--color_1);
                            width: 150px;
                            height: 45px;
                            box-shadow:0 0 15px #444 inset;
                            border-radius: 30px 30px 0 0;
                            bottom: 0;
                            z-index: -2;
                        }
                        .counter .counter-content{
                            color: var(--color_1);
                            background:var(--white);
                            text-align: center;
                            height: 185px;
                            width: 185px;
                            padding: 24px;
                            margin: 0 auto;
                            box-shadow: 0 0 10px var(--black), 0 0 0 15px var(--color_1);
                            border-radius: 50%;
                            display: block;
                            position: relative;
                            transition: all 0.3s ease 0s;
                        }
                        .counter:hover .counter-content{
                            box-shadow: 0 0 10px var(--black), 0 0 0 15px var(--color_1), 0 0 10px rgba(0,0,0,0.3) inset;
                        }
                        .counter .counter-icon{
                            font-size: 40px;
                            line-height: 45px;
                            margin-bottom:12px;
                            transition: all 0.3s ease 0s;
                        }
                        .counter:hover .counter-icon{ transform: rotateX(360deg); }
                        .counter .counter-value{
                            font-size: 30px;
                            font-weight: 600;
                        }
                        .counter h3{
                            font-size: 17px;
                            font-weight: 600;
                            margin: 0 0 8px 0;
                            letter-spacing: 1px;
                            text-transform: uppercase;
                        }
                        .counter.green:after{ background-color: var(--color_2); }
                        .counter.green .counter-content{
                            color: var(--color_2);
                            box-shadow: 0 0 10px var(--black), 0 0 0 15px var(--color_2);
                        }
                        .counter.green:hover .counter-content{
                            box-shadow: 0 0 10px var(--black), 0 0 0 15px var(--color_2), 0 0 10px rgba(0,0,0,0.3) inset;
                        }
                        .counter.blue:after{ background-color: var(--color_3); }
                        .counter.blue .counter-content{
                            color: var(--color_3);
                            box-shadow: 0 0 10px var(--black), 0 0 0 15px var(--color_3);
                        }
                        .counter.blue:hover .counter-content{
                            box-shadow: 0 0 10px var(--black), 0 0 0 15px var(--color_3), 0 0 10px rgba(0,0,0,0.3) inset;
                        }
                        .counter.orange:after{ background-color: var(--color_4); }
                        .counter.orange .counter-content{
                            color: var(--color_4);
                            box-shadow: 0 0 10px var(--black), 0 0 0 15px var(--color_4);
                        }
                        .counter.orange:hover .counter-content{
                            box-shadow: 0 0 10px var(--black), 0 0 0 15px var(--color_4), 0 0 10px rgba(0,0,0,0.3) inset;
                        }
                        @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