{
const styleInitial = 'box-shadow: none; border-radius: 4px; padding: 2px; background: none; transition: all 500ms';
const styleActive = 'background: #ff0; box-shadow: 0 2px 5px -1px #550a';
const lines = [];
const wrap = (contents, data) => {
const node = html`<mark style="${styleInitial}">${contents}`;
node.index = data;
lines.push(node);
return node;
};
const block = markLines(exampleText, true, {wrap, language: 'js'});
lines.sort((a, b) => a.index - b.index);
let n = -1;
while(true) {
if(lines[n]) lines[n].style.cssText += styleInitial;
n = (n + 1) % lines.length;
lines[n].style.cssText += styleActive;
yield block;
await Promises.delay(1000);
}
}