Is it possible to add responsive background image using cloudinary in React?

Tomas
Tomas Member Posts: 2

I have just discovered cloudinary and I am making a website where I am trying to make several sections of the page with different background images to be responsive by size as well by format for older browsers.

I have set up React SDK and with AdvancedImage I am getting responsive images.

My question is it possible to set up the AdvancedImage to be background image? Or for the background images I have to set functions for the screen width and in which browser the page is viewed to set manually the screen width and format to include into url when requesting an image from cloudinary? Or should I get the image using the AdvancedImage and place it as absolute in the container?

I was googling and checking the documentation of cloudinary with no luck.

Tagged:

Comments