js-cloudimage-hotspot

Image Hotspots

Add interactive hotspots to any image with zoom, popovers, and full accessibility. Zero dependencies, under 10 KB gzipped.

<10 KB gzipped Zero dependencies TypeScript WCAG 2.1 AA React ready

Up and running in under a minute

Install from npm or load from CDN — choose the method that fits your workflow.

Try it live Vanilla React
Install via npm
npm install js-cloudimage-hotspot
import CIHotspot from 'js-cloudimage-hotspot';

const viewer = new CIHotspot('#my-image', {
  src: 'https://example.com/room.jpg',
  hotspots: [
    {
      id: 'sofa',
      x: '40%', y: '60%',
      label: 'Modern Sofa',
      data: { title: 'Sofa', price: '$899' }
    }
  ]
});
Use via CDN
<script src="https://scaleflex.cloudimg.io/v7/plugins/js-cloudimage-hotspot/1.1.3/js-cloudimage-hotspot.min.js?vh=f0b28e&func=proxy"></script>

<div
  data-ci-hotspot-src="/room.jpg"
  data-ci-hotspot-items='[{"id":"sofa","x":"40%","y":"60%","label":"Sofa"}]'
></div>

<script>CIHotspot.autoInit();</script>

Trigger Modes

Choose how popovers are activated: hover for desktop, click for touch, or show on load for key items.

👁 Hover

👆 Click

Load

Themes & Custom Styling

Built-in light and dark themes. Customize every detail with 40+ CSS custom properties.

Light Theme

Dark Theme

Custom Styling

Multi-Image Navigation

Navigate between scenes with hotspot-driven transitions. Click the arrow markers to move between rooms.

Interactive Configurator

Toggle options and see the generated code update in real time.

Preview

Options

Generated Code

js-cloudimage-360-view

Interactive 360° product views with drag, zoom, autoplay and hotspots. Perfect companion for e-commerce showcases.

js-cloudimage-before-after

Beautiful image comparison slider with responsive design, touch support, and smooth animations. Perfect for showcasing transformations.

Before After