counter style : demo 50

Web Designing

1245

Web Development

1327

Brand Building

1589

Responsive Design

1710

HTML

(Icons : Fontawesome & CSS Framwork: Bootstrap)
                        

Web Designing

1245

Web Development

1327

CSS

(Fonts required: Titillium Web.)
                        :root{
                            --white: #fff;
                            --bg_color1: #CE1211;
                            --bg_color2: #7EB814;
                            --bg_color3: #1298B3;
                            --bg_color4: #FD7C05;
                        }
                        .counter{
                            color: var(--white);
                            font-family: 'Titillium Web', sans-serif;
                            text-align: center;
                            width: 210px;
                            padding: 25px 20px 25px;
                            margin: 0 auto;
                            position: relative;
                            z-index: 1;
                        }
                        .counter:before,
                        .counter:after{
                            content: '';
                            background-color: var(--bg_color1);
                            height: 160px;
                            width: 160px;
                            border-radius: 15px 15px 0 15px;
                            transform: translateX(-50%) translateY(-50%) rotate(45deg);
                            position: absolute;
                            left: 50%;
                            top: 50%;
                            z-index: -1;
                            transition: all 0.3s;
                        }
                        .counter:hover:before{ box-shadow: 0 0 15px var(--white) inset; }
                        .counter:after{
                            height: 80px;
                            width: 80px;
                            border-radius: 0;
                            border: 5px solid var(--white);
                            background-color: transparent;
                            top: 81%;
                        }
                        .counter:hover:after{
                            transform: translateX(-50%) translateY(-50%) rotate(225deg);
                        }
                        .counter .counter-icon{
                            font-size: 35px;
                            margin: 0 0 10px;
                            display: block;
                            transition: all 0.3s;
                        }
                        .counter:hover .counter-icon{
                            text-shadow: 0 0 10px rgba(0,0,0,0.8);
                            transform: rotateX(360deg);
                        }
                        .counter h3{
                            font-size: 18px;
                            font-weight: 500;
                            letter-spacing: 1px;
                            text-transform: capitalize;
                            margin: 0 0 55px 0;
                        }
                        .counter .counter-value{
                            font-size: 23px;
                            font-weight: 700;
                            letter-spacing: 1px;
                            margin: 0 0 5px;
                            display: block;
                        }
                        .counter.green:before{ background-color: var(--bg_color2); }
                        .counter.blue:before{ background-color: var(--bg_color3); }
                        .counter.orange:before{ background-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