Réponse

element.style.color = "red";

Explication

h1.style.transition = "transform 2s";
h1.style.transition = "all 2s";
h1.style.transform = "translate(120px)";
setTimeout(function(){
h1.style.opacity = 0;
},3000);

Question

Quelle propriété pour modifier ou récupérer les styles d'un élément du DOM?

Thématique