Файл color/trippy-variable-font-example-text-effect/script.js Вес запакованого файла 191b (191 b) Вес распакованого файла: 246b (246 b) Метод сжатия: 8
// JS is to make the text editable, not required for the effect. Thanks for the suggestion @chriscoyier!
var h1 = document.querySelector("h1");
h1.addEventListener("input", function() {
this.setAttribute("data-heading", this.innerText);
});