The Responsive Images provide an optimal viewing experience to users, irrespective of the device, window size, orientation, or resolution used to view it.
Here is a code sample to generate a responsive image tag for the asset sample in our demo account. To create a responsive image tag for your asset, here are the steps:
- replace the cloud_name from demo to yours on line 5 in index.js
- replace the asset sample to your asset on line 7 in index.js