Skip to content

Blob Shape Image Masks

Bootstrap 5 feature section with photos masked into organic, slowly morphing blob shapes using pure CSS border-radius.

Also known as: blob image mask, organic shape images, morphing blob shapes, irregular photo shapes, animated blob images

Blob Shape Image Masks live demo

Open in new tab

Bootstrap 5 code (HTML, CSS)

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-2 and --bm-shape-3 on .bm-section: edit the eight percentages to draw new blob outlines.
  • --bm-morph-speed on .bm-section: set a lower value for faster morphing, or remove the animation from .bm-blob for static shapes.
  • --bm-bg, --bm-ink and --bm-accent on .bm-section: change the background, text and terracotta accent colors.
  • --bm-deco on .bm-section: recolors the SVG blob behind the photos.
  • width, top, left, right and bottom in .bm-figure--main, .bm-figure--top and .bm-figure--bottom: rearrange or resize the collage.
  • border: 6px solid #fff in .bm-blob: thicken the white frame or remove it for borderless blobs.
  • Delete the .bm-tag paragraph 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.

Blob Shape Image Masks at a glance

Framework
Bootstrap 5
Code
HTML, CSS
JavaScript
Only Bootstrap 5's own script
Dependencies
Bootstrap 5
Layout
Responsive, works on mobile
Category
Shapes & Dividers
License
Free for personal and commercial use

Questions about this template

Can I use the Blob Shape Image Masks code for free?

Yes. You can copy or download the code and use it in personal and commercial projects, including client work. No sign-up is needed. Reselling it as part of a component library or template collection is not allowed; see the license.

How do I add it to my website?

Load Bootstrap 5 from a CDN (the links are under Requirements). Paste the HTML where the component should appear and add the CSS to your stylesheet. Download HTML gives you a complete page with everything already linked.

Does it need jQuery or a JavaScript framework?

No. Only Bootstrap 5's own JavaScript is used, and the download already includes it.

Does it work on mobile?

Yes. The layout adapts to small screens. Use the Mobile and Tablet buttons above the live demo to check it at phone and tablet width.

Requirements

Add these to your page (already included in the download):

  • <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css">
  • <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js"></script>
Blob Shape Image Masks – free Bootstrap 5 shape & divider template
Blob Shape Image Masks · free Bootstrap 5 shape & divider template

More Shapes & Dividers

Curved Section with Photo Clip-Path – free Pure CSS shape & divider template

Curved Section with Photo Clip-Path

Full-width photo hero with a responsive curved bottom edge made with CSS clip-path ellipse, plus a three-column feature row below.

Wave Section Dividers – free Pure CSS shape & divider template

Wave Section Dividers

Pure CSS and inline SVG section dividers with wave, layered wave, curve and tilt shapes that inherit the next section's color and stretch to any width.