How to change GRADIENT with code?

Hi,
First the code from the custom element must be in:
public/custom-elements/FILE_NAME.js’
Second, you can just paste html code their. You need to build it in a custom element class. See docs here:

https://support.wix.com/en/article/velo-about-custom-elements

https://www.wix.com/velo/reference/$w/customelement