counter style : demo 99

Web Designing

1963

Web Development

1854

Brand Building

1756

Responsive Design

1823

HTML

(CSS Framwork: Bootstrap)
                        

Web Designing

1963

Web Development

1854

CSS

(Fonts required: Montserrat.)
                        .demo{ background-color: #e9e9e9; }
                        .counter{
                            font-family: 'Montserrat', sans-serif;
                            text-align: center;
                            width: 200px;
                            padding: 0 0 15px;
                            margin: 0 auto;
                            position: relative;
                        }
                        .counter:before{
                            content: '';
                            background: linear-gradient(to right,#4054b2,#db02ea);
                            width: 100%;
                            height: 100px;
                            position: absolute;
                            left: 0;
                            bottom: 0;
                            clip-path: polygon(0 0, 50% 100%, 100% 0);
                        }
                        .counter h3{
                            color: #fff;
                            background: linear-gradient(to right,#4054b2,#db02ea);
                            font-size: 20px;
                            font-weight: 600;
                            line-height: 25px;
                            padding: 7px 17px;
                            margin: 0 auto;
                            border: 5px solid #fff;
                            box-shadow: 0 0 10px #999;
                            border-radius: 30px;
                            position: relative;
                            z-index: 1;
                        }
                        .counter .counter-content{
                            color: #333;
                            background-color: #fff;
                            height: 100px;
                            padding: 15px 15px 20px;
                            margin: -10px 0 0;
                            clip-path: polygon(0 0, 50% 100%, 100% 0);
                        }
                        .counter .counter-value{
                            font-size: 30px;
                            font-weight: 600;
                            letter-spacing: 1px;
                            text-transform: uppercase;
                            display: block;
                        }
                        .counter.red:before,
                        .counter.red h3{
                            background: linear-gradient(to right,#dd3131,#770000);
                        }
                        .counter.green:before,
                        .counter.green h3{
                            background: linear-gradient(to right,#2feb00a8,#00a512);
                        }
                        .counter.blue:before,
                        .counter.blue h3{
                            background: linear-gradient(to right,#06b7f9,#194aec);
                        }
                        @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