Файл color/css-only-frozen-text/script.js Вес запакованого файла 201b (201 b) Вес распакованого файла: 263b (263 b) Метод сжатия: 8
// JS is to make the text editable for demo purpose, 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);
});