April 9, 2026/Simple/Galleries & Media

Double Gallery

Pairs of images that redistribute their widths as you move the mouse across the screen. The dominant image shrinks as the secondary expands, using lerp-smoothed requestAnimationFrame. Pairs alternate between 66/33 and 33/66 splits.

import DoubleGallery from "./index.jsx";
import { doubleGallery } from "../demo-data.js";
import styles from "./demo.module.css";

export default function DoubleGalleryDemo() {
  return (
    <div className={styles.demo}>
      <h2 className={styles.heading}>Selected Work</h2>
      <DoubleGallery projects={doubleGallery.projects} />
    </div>
  );
}

Related Components

1W AGO
BeNorth Reelgalleries
1W AGO
Lamalama Case Listgalleries
1W AGO
Inkfish Work Gridgalleries