How to use the @hpcc-js/other.MorphText function in @hpcc-js/other

To help you get started, we’ve selected a few @hpcc-js/other examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github hpcc-systems / Visualization / demos / gallery / samples / other / MorphText.js View on Github external
import { MorphText } from "@hpcc-js/other";

const data = [
    "TOM MARVOLO RIDDLE",
    "I AM LORD VOLDEMORT"
]
const w = new MorphText()
    .target("target")
    .text(data[0])
    .render()
    ;
let count = 0;
setInterval(function(){
    count++;
    w.text(data[count%2]).render();
},3000);