Repository navigation
How did you 'globalThis'ify Vanta Waves? #245
|
Could you please explain how you were able to generate this version of Vanta Waves that used globalThis over window? I would like to convert some other Vanta animated backgrounds in a similar manner, but I do not relish the prospect of working my way through a minified javascript file. Did you recompile using a modified version of the open source project here? https://github.com/tengbao/vanta |
Replies: 4 comments
|
Thanks for the interest. I did indeed convert from source using the vanta repo. I had PR'd (tengbao/vanta#118) one of my tweaks to the repo. I think I mostly just did a global search/replace for |
|
Very cool! I like that cloud one but on mobile for me it didn't look too good which is why I hadn't integrated a "cloud" one yet. Maybe I'll need to reconsider as it's quite cool. |

Thanks for the interest. I did indeed convert from source using the vanta repo. I had PR'd (tengbao/vanta#118) one of my tweaks to the repo. I think I mostly just did a global search/replace for
windowtoglobalThis. I run it in a web worker so this was required. Attached is a diff of all the changes I've done to my local fork of vanta.vanta-ea669eb-Various tweaks.zip