Unlock seamless workflows and faster delivery with our latest releases - Join the deep dive

What are the Best CSS attributes to Achieve the Hotspot from Sanity Image?

3 replies
Last updated: May 30, 2020
Hey Team it's a dumb doubt but what best CSS attributes we have to use to achieve the hotspot from Sanity Image
May 28, 2020, 4:22 AM
I would recommend using the image-url builder when using hotspot. Just give it the asset, including the hotspot and cropping data and it will generate the url for you. You don't have to do any css trickery unless you have a special needs.

https://www.sanity.io/docs/image-url
May 28, 2020, 9:00 AM
Thanks
user J
will work on it!
May 28, 2020, 9:35 AM
It worked thanks !
May 30, 2020, 9:14 AM

Sanity– build remarkable experiences at scale

Sanity is a modern headless CMS that treats content as data to power your digital business. Free to get started, and pay-as-you-go on all plans.

Was this answer helpful?