Hey, does anyone knows how to attach background images dynamically like opening a movie page with the relevant poster in background image.
Have tried adding html style attribute, but it seems i can’t get the json format right, is it like this.
{
“background”: {
“type”: “style”,
“style”: {
“backgroundImage”: “url(‘https://example.com’)”,
“backgroundSize”: “cover”,
“backgroundPosition”: “center”,
“backgroundRepeat”: “no-repeat”
}
}
}
More info: have also tried doing a preview, but it still doesn’t attach the image, if there’s another way please do tell.