counter style : demo 47

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: Rubik.)
                        :root{
                            --white: #fff;
                            --black: #000;
                            --bs_color_1: rgba(0, 0, 0, 0.5);
                            --bs_color_2: #e4ebe4;
                            --color_1: linear-gradient(45deg,#62c04e,#0aaa92);
                            --color_2: linear-gradient(45deg,#1452a7,#433b84);
                            --color_3: linear-gradient(45deg,#0d9c98,#2c6d8d);
                            --color_4: linear-gradient(45deg,#7e2380,#412164);
                        }
                        .counter{
                            color: var(--white);
                            font-family: 'Rubik', sans-serif;
                            text-align: center;
                            padding-bottom: 70px;
                            position: relative;
                            z-index: 1;
                        }
                        .counter:before{
                            content: '';
                            background: var(--color_1);
                            height: 135px;
                            width: 135px;
                            box-shadow: 0 0 10px var(--bs_color_1) inset,
                                        0 0 0 12px var(--bs_color_2), 0 0 0 17px var(--white), 0 0 35px var(--black);
                            transform: translateX(-50%) rotate(45deg);
                            position: absolute;
                            left: 50%;
                            top: 70px;
                            z-index: -2;
                        }
                        .counter .counter-icon{
                            background: var(--color_1);
                            font-size: 45px;
                            line-height: 80px;
                            height: 90px;
                            width: 90px;
                            margin: 0 auto 35px;
                            border: 5px solid var(--white);
                            border-radius: 50%;
                            transition: all 0.3s ease 0s;
                        }
                        .counter:hover .counter-icon{ transform: rotate(360deg); }
                        .counter .counter-content{ padding: 0 28px; }
                        .counter .counter-value{
                            font-size: 28px;
                            font-weight: 500;
                            display: block;
                        }
                        .counter h3{
                            font-weight: 500;
                            font-size: 15px;
                            letter-spacing: 1px;
                            text-transform: capitalize;
                            margin: 0 0 5px 0;
                            transition: all 0.3s ease 0s;
                        }
                        .counter:hover h3{ text-shadow: 0 0 5px var(--black); }
                        .counter.darkblue:before,
                        .counter.darkblue .counter-icon{ background: var(--color_2); }
                        .counter.blue:before,
                        .counter.blue .counter-icon{ background: var(--color_3); }
                        .counter.purple:before,
                        .counter.purple .counter-icon{ background: var(--color_4); }
                        @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