counter style : demo 55

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: Roboto.)
                        :root{
                            --bg_color1: linear-gradient(to bottom, #D7487B, #8031D3);
                            --bg_color2: linear-gradient(to bottom, #F2C33A, #EB5E04);
                            --bg_color3: linear-gradient(to bottom, #4093F2, #796FE7);
                            --bg_color4: linear-gradient(to bottom, #f73636, #ad1d1d);
                        }
                        .counter{
                            font-family: 'Roboto', sans-serif;
                            text-align: center;
                            width: 200px;
                            margin: 0 auto;
                        }
                        .counter .counter-content{
                            color: #fff;
                            padding: 20px 0 0;
                            margin-bottom: 10px;
                            position: relative;
                            z-index: 1;
                        }
                        .counter .counter-content:before,
                        .counter .counter-content:after{
                            content:"";
                            height: 100%;
                            width: 100%;
                            background: var(--bg_color1);
                            position: absolute;
                            left: 0;
                            top: 0;
                            z-index: -1;
                            -webkit-clip-path: polygon(50% 0%, 0 100%, 100% 100%);
                            clip-path: polygon(50% 0%, 0 100%, 100% 100%);
                            transition: all 0.5s ease;
                        }
                        .counter .counter-content:after{
                            background: #fff;
                            transform: scale(0) rotateY(360deg);
                            top: 2px;
                        }
                        .counter:hover .counter-content:after{
                            opacity: 0;
                            transform: scale(1) rotateY(0);
                        }
                        .counter .counter-icon{ font-size: 30px; }
                        .counter:hover .counter-icon{ text-shadow: 0 0 2px #000; }
                        .counter .counter-value{
                            font-size: 35px;
                            font-weight: 700;
                            display: block;
                        }
                        .counter h3{
                            color: #8437CB;
                            font-size: 18px;
                            font-weight: 600;
                            text-transform: uppercase;
                            letter-spacing: 1px;
                            padding: 0 20px;
                            margin: 0;
                        }
                        .counter.yellow .counter-content:before{ background: var(--bg_color2); }
                        .counter.yellow h3{ color: #EB5E04; }
                        .counter.blue .counter-content:before{ background: var(--bg_color3); }
                        .counter.blue h3{ color: #796FE7; }
                        .counter.red .counter-content:before{ background: var(--bg_color4); }
                        .counter.red h3{ color: #ad1d1d; }
                        @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