Toggle Sidebar B
AppearanceLight & dark mode D

Masonry

Responsive masonry layout with animated reflow + gaps optimization.

Default

Use the replay button to run the entrance again. Every prop is wired to the controls underneath.

Dark previewReplay previewOpen in new tab

Customize

Ease
Animate From
Duration0.6s
Stagger0.05s

API Reference

Masonry

PropTypeDefaultDescription
items{ id: string; img: string; url: string; height: number }[]requiredArray of items to display in the masonry layout. Each item should have id, img, url, and height properties.
easestring'power3.out'GSAP easing function for animations.
durationnumber0.6Duration of the transition animations in seconds.
staggernumber0.05Delay between each item's animation in seconds.
animateFromstring'bottom'Direction from which items animate in. Options: 'top', 'bottom', 'left', 'right', 'center', 'random'.
scaleOnHoverbooleantrueWhether items should scale on hover.
hoverScalenumber0.95Scale value when hovering over items (only applies if scaleOnHover is true).
blurToFocusbooleantrueWhether items should animate from blurred to focused on initial load.
colorShiftOnHoverbooleanfalseWhether to show a color overlay effect on hover.

Accessibility

Keyboard shortcuts and ARIA behavior.

  • Items are clickable divs without focus or alt text, so they work for pointer users only. Add your own link semantics if the images matter for navigation.