my_div.innerHTML += 'новый текст';
var test = document.getElementById('test'),
input = document.getElementById('inp');
input.addEventListener('change', function () {
var val = this.value;
this.value = '';
test.innerHTML += val; // <-- вот тут добавляем текст к нашему полю
});
<div class="item">
<div class="item-mask"></div>
<div class="item-inner"></div>
</div>
.item {
position: relative;
width: 200px;
height: 200px;
background: #000;
overflow: hidden;
border-radius: 50%;
}
.item-mask {
position: absolute;
top: 100%; left: 0;
width: 100%; height: 100%;
background: #f00;
transition: all 500ms cubic-bezier(0.420, 0.000, 0.580, 1.000); /* ease-in-out */
transition-timing-function: cubic-bezier(0.420, 0.000, 0.580, 1.000); /* ease-in-out */
}
.item:hover .item-mask {
top: 0;
}
.item-inner {
position: absolute;
top: 10px; left: 10px;
width: 180px; height: 180px;
background: #fff;
border-radius: 50%;
}