I tried using a css variable. But then in the url box, am not sure if teh css variable works. Unless there is a specific way to enter it.
Andreas Møller
4 months ago
I dont think the input supports it at them moment bu you can input it in css view
The AI assistant should be able to explain how if you run into problems.
salma
4 months ago
In these situations at the moment it works to add a style attribute in the attributes panel and set the background image from a variable/formula from there.
Hi! im glad i found this because having css variable support for BG images would be useful Blurry Image Placeholder technique. I did try to manually type in the variable name CSS but didn't have any luck
Moonpie
19 days ago
also the style attribute does work perfectly fine as well!
Marija Gerasimovska
18 days ago
You can create a variable with syntax "Any" and use that one for setting the url image. The value of the formula should look something like this url(https://toddle.dev/cdn-cgi/imagedelivery/ZIty0Vhmkm0nD-fBKJrTZQ/toddle:toddle-default-image.jpg/540)
🔥1
Marija Gerasimovska
18 days ago
Then just use that variable in the image url input field.