counter style : demo 188

16

Web Designing

15

Web Development

14

Brand Building

15

Responsive Design

HTML

(Icons : Fontawesome & CSS Framwork: Bootstrap)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<div class="container">
    <div class="row">
        <div class="col-md-3 col-sm-6">
            <div class="counter"
                <div class="counter-icon"><i class="fa fa-globe"></i></div
                <span class="counter-value">2</span>
                <h3>Web Designing</h3>
            </div>
        </div>
        <div class="col-md-3 col-sm-6">
            <div class="counter red">
                <div class="counter-icon"><i class="fa fa-rocket"></i></div>
                <span class="counter-value">2</span>
                <h3>Web Development</h3>
            </div>
        </div>
    </div>
</div>

CSS

(Fonts required: Poppins.)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
.counter{
    background: #fff;
    font-family: 'Poppins', sans-serif;
    text-align: center;
    padding: 15px;
    border: 15px solid #e7e7e7;
    border-radius: 15px;
}
.counter .counter-icon{
    color: #fff;
    background-color: #018580;
    font-size: 35px;
    line-height: 70px;
    width: 70px;
    height: 70px;
    margin: 0 auto 15px;
    border-radius: 50%;
}
.counter .counter-value{
    color: #222;
    font-size: 35px;
    font-weight: 300;
    margin: 0 0 17px;
    display: block;
}
.counter h3{
    color: #fff;
    background-color: #018580;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: capitalize;
    padding: 8px 5px;
    margin: 0;
    border-radius: 15px;
}
.counter.red .counter-icon,
.counter.red h3{
    background-color: #FA615C;
}
.counter.purple .counter-icon,
.counter.purple h3{
    background-color: #885E6B;
}
.counter.orange .counter-icon,
.counter.orange h3{
    background-color: #FF8345;
}
@media screen and (max-width:990px){
    .counter{ margin-bottom: 40px; }
}  

JavaScript

(Counter depend on jQuery.)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<script type="text/javascript" src="https://code.jquery.com/jquery-1.12.0.min.js"></script>
 
$(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