<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>count up when scroll down</title>
<link href='http://fonts.googleapis.com/css?family=Pacifico' rel='stylesheet' type='text/css'>
<style>
body { background-color:#f57c4f; color:#fff; font-family:'Pacifico'}
.container { margin:150px auto; max-width:480px;}
h1 { text-align:center; font-family:'Pacifico'}
.demo { text-align:center; margin-top:800px;}
span.counter { display: inline-block;
    font-size: 21px;
    font-family: 'Pacifico';
    border: 2px solid #fff;
    padding: 10px 18px;
    width: 109px;
    margin-right: 8px;}
</style>
</head>
<body>

<div class="container">
<h1> Please Scroll Down</h1>
<div class="demo">
<span class="counter">1,234,567.89</span>
<span class="counter">99.99</span>
<span class="counter">1234567</span>
</div>
</div>
<script src="https://code.jquery.com/jquery-1.12.4.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/waypoints/4.0.1/jquery.waypoints.min.js"></script>
<script src="https://www.jqueryscript.net/demo/Counting-Up-To-Numerical-Values-On-Scroll-jQuery-Countup-js/jquery.countup.js"></script>
<script>
$('.counter').countUp();
</script>

</body>
</html>

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.