Skip to content
Image Effects

ShutterIris

A camera lens seen from the front, the picture small behind a real many-sided iris. Hover or focus twists the blades open and turns the f-stop ring. Press fires the shutter and the next picture is behind it.

Download
  • React
  • Tailwind CSS v4
  • motion

Props

NameTypeDefaultWhat it does
imagesShutterIrisImage[]—One or more pictures, each with src and alt.
restnumber0.3How open the iris sits at rest, 0 to 1.
widenumber0.97How open it goes on hover and focus, 0 to 1.
bladesnumber7Number of metal blades, 5 to 12.
onShoot(index: number) => void—Called with the new picture's index after each shot.
classNamestring"w-80"Set the width here. The lens is always round.