oh and here are the params I’m using:
{
“bg”: {
“type”: “group”,
“label”: “Background”,
“noPicker”: true,
“params”: {
“bgImg”: {
“type”: “group”,
“label”: “Image”,
“noPicker”: true,
“params”: {
“enable”: {
“type”: “choose”,
“label”: “Image Enable”,
“initial”: “none”,
“isVar”: true,
“options”: [
{ “value”: “image”, “label”: “On” },
{ “value”: “none”, “label”: “Off” }
]
},
“img”: {
“label”: “Background Image”,
“type”: “image”,
“initial”: “”,
“when”: “not(eq($.bg.bgImg.enable, ‘none’))”,
“height”: 4
},
“parallax”: {
“type”: “choose”,
“label”: “Parallax”,
“isVar”: true,
“when”: “not(eq($.bg.bgImg.enable, ‘none’))”,
“options”: [
{ “value”: true, “label”: “On” },
{ “value”: false, “label”: “Off” }
]
},
“position”: {
“label”: “Image Position”,
“type”: “dimension”,
“isVar”: true,
“initial”: “50%”,
“when”: “not(eq($.bg.bgImg.enable, ‘none’))”,
“units”: ["%"],
“ranges”: {
“%”: { “min”: 0, “max”: 100, “step”: 1 }
}
},
“opacity”: {
“label”: “Image Opacity”,
“type”: “opacity”,
“isVar”: true,
“initial”: “1”,
“when”: “not(eq($.bg.bgImg.enable, ‘none’))”,
“ranges”: {
“unitless”: { “min”: 0.1, “max”: 1, “step”: 0.01 }
}
}
}
},
“bgColor”: {
“type”: “group”,
“label”: “Color”,
“noPicker”: true,
“params”: {
“color”: {
“type”: “color”,
“label”: “Background Color”,
“isVar”: true,
“initial”: “transparent”
}
}
}
}
}
}