
Company News
Socket Has Acquired Secure Annex
Socket has acquired Secure Annex to expand extension security across browsers, IDEs, and AI tools.
next-360-image-viewer
Advanced tools
npm i next-360-image-viewer
# Or
yarn add next-360-image-viewer
# Or
pnpm i next-360-image-viewer
import { NEXT_IMAGE_TURNTABLE } from 'next-360-image-viewer';
const images = [
'https://via.placeholder.com/1920x1080?text=1',
'https://via.placeholder.com/1920x1080?text=2',
'https://via.placeholder.com/1920x1080?text=3',
];
export const VIEWER = () => {
return (
<>
<NEXT_IMAGE_TURNTABLE images={images} />
</>
);
};
import { useRef } from 'react';
import { NEXT_IMAGE_TURNTABLE, type TURNTABLE_REF } from 'next-360-image-viewer';
export const AUTOPLAY_VIEWER = () => {
const turntableref = useRef<TURNTABLE_REF>(null);
const HANDLE_START_AUTOPLAY = () => {
turntableref.current?.START_AUTOPLAY();
};
const HANDLE_STOP_AUTOPLAY = () => {
turntableref.current?.STOP_AUTOPLAY();
};
return (
<div>
<NEXT_IMAGE_TURNTABLE
ref={turntableref}
images={images}
autoplay={true}
autoplayspeed={1500}
autoplaydirection="forward"
autopauseonhover={true}
/>
<button onClick={HANDLE_START_AUTOPLAY}>Start Autoplay</button>
<button onClick={HANDLE_STOP_AUTOPLAY}>Stop Autoplay</button>
</div>
);
};
| Props | Type | Required | Default Value |
|---|---|---|---|
images | string[] | âś“ | undefined |
initialimageindex | number | 0 | |
movementsensitivity | number | 20 | |
onload | function | undefined | |
className | string | undefined | |
autoplay | boolean | false | |
autoplayspeed | number | 2000 | |
autoplaydirection | 'forward' | 'backward' | 'forward' | |
autopauseonhover | boolean | true |
Use a ref to access autoplay control functions:
const turntableref = useRef<TURNTABLE_REF>(null);
// Available methods:
turntableref.current?.START_AUTOPLAY();
turntableref.current?.STOP_AUTOPLAY();
turntableref.current?.PAUSE_AUTOPLAY();
turntableref.current?.RESUME_AUTOPLAY();
// Available state:
turntableref.current?.isautoplayactive; // boolean
turntableref.current?.ispaused; // boolean
turntableref.current?.activeimageindex; // number
FAQs
Display a set of images in a draggable 360 degree viewer.
The npm package next-360-image-viewer receives a total of 30 weekly downloads. As such, next-360-image-viewer popularity was classified as not popular.
We found that next-360-image-viewer demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Company News
Socket has acquired Secure Annex to expand extension security across browsers, IDEs, and AI tools.

Research
/Security News
Socket is tracking cloned Open VSX extensions tied to GlassWorm, with several updated from benign-looking sleepers into malware delivery vehicles.

Product
Reachability analysis for PHP is now available in experimental, helping teams identify which vulnerabilities are actually exploitable.