Image Lightbox
Image Lightbox
CapsuleX includes a built-in lightbox for viewing images in fullscreen mode.
How It Works
Click any image in a blog post to open it in a fullscreen lightbox overlay.
Features
- Fullscreen view — Images are displayed in a fullscreen overlay
- Keyboard navigation — Use arrow keys to navigate between images
- Close options — Click the close button, press ESC, or click the overlay background
- Smooth animations — Fade in/out transitions for a polished experience
- Multiple images — Navigate between all images in the post
Multiple Images
Here are more example images to test navigation:
Usage
The lightbox is automatically enabled for all blog posts. Simply:
- Add images to your Markdown file using standard syntax
- The lightbox will automatically attach click handlers
- Click any image to open the fullscreen view
Keyboard Shortcuts
| Key | Action |
|---|---|
ESC | Close lightbox |
← | Previous image |
→ | Next image |
Configuration
The lightbox can be toggled in src/config.ts:
features: {
lightbox: true, // Enable image lightbox on click
}