Guided Gallery
A WebGL image gallery with focal-aware crops, tactile browsing, and captions that follow each image.
Live preview
Interact with the effect here. Drag, hover, and use its controls.
Variation Tweaking
Adjust the options and see the preview update live.
Installation
Install automatically via CLI or manually integrate dependencies and code.
Usage
Import the component and configure visual variants, sizes, and operational states.
import { GuidedGallery } from '@/components/interactions/guided-gallery' <GuidedGallery items={items} preset="liquid" interval={1.5} captions/>Composition
Compose with icons, form triggers, and layout containers.
const items = [ { src: '/gallery/portrait.jpg', alt: 'Portrait in soft window light', title: 'Soft light', note: 'A short note about the image.', focalPoint: { x: 0.5, y: 0.4 }, },] <GuidedGallery items={items} autoplay />API Reference
Property matrix, types, defaults, and usage descriptions.
Data Attributes
State-reflecting DOM attributes for custom selector styling.
This component does not expose custom data attributes. Standard HTML data attributes are forwarded to its interactive element.
How It Works
OGL renders each image into a WebGL scene. A focal-point-aware crop keeps each subject in view while cards translate across the canvas. Pointer input, wheel input, keyboard navigation, and the play control all share the same carousel engine.
Accessibility
The gallery is a named carousel region with keyboard controls, descriptive image text, visible focus styling, and reduced-motion support.






