js-cloudimage-3d-view

Interactive 3D Viewer

A lightweight Three.js-powered TypeScript library for embedding interactive 3D models with orbit controls, HDR lighting, shadows, animation playback, and full accessibility.

View
Three.js TypeScript Zero config 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-3d-view three
import { CI3DView } from 'js-cloudimage-3d-view';

const viewer = new CI3DView('#my-container', {
  src: 'model.glb',
  autoRotate: true,
  shadows: true,
});
Use via CDN
<script src="https://unpkg.com/three/build/three.min.js"></script>
<script src="https://scaleflex.cloudimg.io/v7/plugins/js-cloudimage-3d-view/1.1.0/js-cloudimage-3d-view.min.js?vh=709a52&func=proxy"></script>

<div id="viewer"
  data-ci-3d-src="model.glb"
  data-ci-3d-auto-rotate="true"
  data-ci-3d-shadows="true"
  style="width:100%; aspect-ratio:16/9">
</div>

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

Format Support

Automatically detects and loads OBJ, STL, FBX, GLB/glTF, 3DS, AMF, and IFC formats.

GLB / glTF

View

glTF 2.0 binary format with DRACO compression support. The recommended format for web 3D.

OBJ

View

Wavefront OBJ with automatic MTL material file detection.

STL

View

STL stereolithography format, commonly used for 3D printing.

FBX

View

Autodesk FBX with embedded animations and skeleton data.

3DS

View

Autodesk 3D Studio format with geometry, UV mapping, and basic materials.

AMF

View

Additive Manufacturing File format for 3D printing with material and color support.

IFC

View

Industry Foundation Classes (IFC) for BIM — architecture and construction models.

Lighting & Environment

3-point lighting, HDR environment maps, tone mapping, and shadows.

View

Animation Playback

Built-in animation controls for models with embedded animations.

View

Interactive Configurator

Tweak settings in real-time and copy the generated code.

View

Generated Code

const viewer = new CI3DView('#container', {
  src: 'model.glb',
  autoRotate: true,
  shadows: true,
  fullscreenButton: true,
  backgroundToggleButton: true,
  screenshotButton: true,
});

js-cloudimage-360-view

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

js-cloudimage-hotspot

Interactive image hotspots with click, hover, and auto-show triggers. Fully accessible, zero dependencies, endlessly customizable.

js-cloudimage-before-after

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

Before After