<div class="wrapper">
  <div id="counter" class="counter">12345</div>
</div>
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600&display=swap');

.wrapper {
  display:flex;
  flex-direction:column;
  width: 100vw;
  height: 100vh;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat';
}

.counter {
  outline: 1px solid black;
  padding: 0.5em;
  font-size: 2rem;
}
View Compiled
const counter =     document.querySelector('#counter');
let number = 12345;

counter.textContent = number;

setInterval(function(){
  number += 111
  counter.textContent = number;
}, 60)


Run Pen

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.