No problem, thank you for elaborating!
I believe that this has been previously tackled by another user
in this tweet.
Please refer to the comments for a screenshot of the node setup and the code itself, and do let us know if this helps you achieve the intended effect.