function clickListener() {
loader.style.display = 'inline-block';
title.style.display = 'none';
}
button {
height: 3rem;
padding: 0 1rem;
margin-right: 20px;
}
#loader {
display: none;
width: 12px;
height: 12px;
margin: 15px auto;
position: relative;
}
<div class="buttons">
<button>1</button>
<button>2</button>
<button onclick="clickListener()">
<span id="title">Push</span>
<span id="loader"></span>
</button>
</div>
浏览器:Chrome