I'm trying to change the color of the text of a h1 tag using linear-gradient.
document.querySelectorAll('.hud-intro h1')[0].style.color = 'linear-gradient(to right, #7f00ff, #e100ff);'
document.querySelectorAll('.hud-intro h1')[0].style.background = 'linear-gradient(to right, #7f00ff, #e100ff);'
<div id="hud-intro" class="hud-intro">
<h1>NAME HERE<small>.io</small></h1>
</div>
I have tried:
document.querySelectorAll('.hud-intro h1')[0].style.color = 'linear-gradient(to right, #7f00ff, #e100ff);'
document.querySelectorAll('.hud-intro h1')[0].style.background = 'linear-gradient(to right, #7f00ff, #e100ff);'