JSFiddle - React, Tailwind, and code Playground
HTML
<marquee>много текста куда-то бежит много текста куда-то бежит много текста куда-то бежит</marquee>
<button id="plus">+</button>
<button id="minus">-</button>
JavaScript
var marquee = document.querySelector('marquee');
var style = getComputedStyle(marquee);
document.getElementById('plus').onclick = function(){
var fontSize = marquee.style.fontSize ? marquee.style.fontSize : style.fontSize;
marquee.style.fontSize = parseInt(fontSize) + 2 + 'px';
}
document.getElementById('minus').onclick = function(){
var fontSize = marquee.style.fontSize ? marquee.style.fontSize : style.fontSize;
if(parseInt(fontSize) > 2)
marquee.style.fontSize = (parseInt(fontSize) - 2) + 'px';
}