Hi @a0b1,
If existing forum ideas haven’t solved it and it’s not straight forward with native javascript - then I’d probably look around for a javascript library that has solved this problem and then consider writing a custom component to allow it to work with anvil.
there are probably a few out there - here’s one that looks promising