CSS Hotspot Metadata - How to Use Hotspot Metadata for Images Within CSS

1 replies
Last updated: Oct 5, 2021
Hey all, is there a way to use the hotspot metadata for images within CSS, or is this primarily used for back end requests? I'd like to just request one image and then have it responsive enough to keep the hotspot area in focus. Cheers!
Oct 4, 2021, 8:34 AM
I imagine it’s possible but don’t recall ever seeing it implemented. The hotspot data is certainly obtainable. Maybe rendered to a component that uses styled-components?
Oct 5, 2021, 5:11 AM

Sanity.io – build remarkable experiences at scale

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

Categorized in