<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <script> window.onload = () => { a = document.createElement("x") document.documentElement.appendChild(a) a.animate([{ "color": "green" }], 3000) b = document.createElement("caption") a.appendChild(b) a.style = "display:contents" //DDBEGIN b.animate([{ "text-indent": "912q" }], 1500) //DDEND a.animate([{}]) } </script> </head> </html>