A Bootstrap 5 feature section that crops photos into soft, organic blob shapes with a slow morphing animation. It suits interior design studios, wellness brands, portfolios and any landing page that needs a friendlier alternative to rectangular images.
How it works
The section .bm-section uses a Bootstrap row with a text column (eyebrow, serif heading, lead text, bullet list and button) and a gallery column. The gallery .bm-gallery is a relative box with a fixed aspect-ratio: 7 / 6. Inside it, three absolutely positioned figure.bm-figure elements (--main, --top, --bottom) overlap each other, and an inline SVG blob .bm-deco sits behind them as a sand-colored backdrop. A small .bm-tag card floats over the bottom-left corner.
The mask itself is plain CSS: every img.bm-blob is a square (aspect-ratio: 1 / 1 with object-fit: cover) and gets an eight-value border-radius such as 63% 37% 54% 46% / 55% 48% 52% 45%. Because each corner has different horizontal and vertical radii, the circle becomes an irregular blob that still scales with the image. The bm-morph keyframes animate between two shapes taken from --bm-from and --bm-to, and negative animation-delay values keep the three blobs out of sync. A drop-shadow filter on the figure follows the curved edge instead of the square box. No JavaScript is needed.
The photos come from Unsplash; replace them with your own images and keep the descriptive alt text up to date.
Customization
--bm-shape-1,--bm-shape-2and--bm-shape-3on.bm-section: edit the eight percentages to draw new blob outlines.--bm-morph-speedon.bm-section: set a lower value for faster morphing, or remove theanimationfrom.bm-blobfor static shapes.--bm-bg,--bm-inkand--bm-accenton.bm-section: change the background, text and terracotta accent colors.--bm-decoon.bm-section: recolors the SVG blob behind the photos.width,top,left,rightandbottomin.bm-figure--main,.bm-figure--topand.bm-figure--bottom: rearrange or resize the collage.border: 6px solid #fffin.bm-blob: thicken the white frame or remove it for borderless blobs.- Delete the
.bm-tagparagraph if you do not need the floating stat card.
Use cases
- Feature sections: photos masked into soft organic shapes break up rigid grids
- Agency and startup sites: slowly morphing blob shapes add gentle motion to the page without any JavaScript
- About pages: team or product photos get a friendly rounded look
- Landing pages: border-radius based masks avoid extra SVG or image editing
Accessibility
Every photo has a descriptive alt text, and the decorative SVG and bullet dots use aria-hidden="true". The section is labelled by its heading via aria-labelledby. The button has a visible focus outline in the accent color. The morph animation stops completely when the user prefers reduced motion, and text colors keep strong contrast on the sand background.
Usage notes
Requires Bootstrap 5 (added automatically). The masks work in all modern browsers because they rely only on border-radius. On small screens the gallery stacks under the text and keeps its proportions.