{"id":158,"date":"2026-10-18T21:10:24","date_gmt":"2026-10-18T21:10:24","guid":{"rendered":"https:\/\/refracttools.com\/blog\/?p=158"},"modified":"2026-10-18T21:10:24","modified_gmt":"2026-10-18T21:10:24","slug":"css-blob-shapes","status":"publish","type":"post","link":"https:\/\/refracttools.com\/blog\/ui-design\/css-blob-shapes\/","title":{"rendered":"CSS blob shapes with border-radius (and how to animate them)"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">You can make a blob shape in pure CSS with the eight-value <code>border-radius<\/code> syntax: four horizontal radii, a slash, then four vertical radii, such as <code>border-radius: 30% 70% 70% 30% \/ 30% 30% 70% 70%<\/code>. When the horizontal and vertical radius of a corner differ, that corner curves elliptically, and together the four corners form a smooth, organic shape. It is one line of CSS, it scales with the element, and you can animate it into a slowly morphing blob.<\/p>\n\n\n\n<div class=\"wp-block-group is-style-refract-takeaways is-layout-constrained wp-block-group-is-layout-constrained\">\n<h3 class=\"wp-block-heading\">Key takeaways<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Use percentages between about 20% and 80% for smooth blobs; values near 0% give flat sides.<\/li>\n\n\n<li>Give the element a fixed aspect ratio, usually 1, so the blob keeps its shape.<\/li>\n\n\n<li>Transition or animate between two <code>border-radius<\/code> values for a morphing effect, and respect reduced motion.<\/li>\n\n\n<li>Use SVG instead when you need sharp points or more complex outlines.<\/li>\n<\/ul>\n<\/div>\n\n\n\n<h2 class=\"wp-block-heading\">How does the eight-value border-radius syntax work?<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Most of the time we write one value, such as <code>border-radius: 12px<\/code>, which makes every corner a quarter circle. But each corner is really part of an ellipse with its own horizontal and vertical radius. The full syntax sets all eight:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>.blob {\n  \/* horizontal radii: top-left, top-right, bottom-right, bottom-left *\/\n  \/* vertical radii:   top-left, top-right, bottom-right, bottom-left *\/\n  border-radius: 30% 70% 70% 30% \/ 30% 30% 70% 70%;\n  width: 320px;\n  aspect-ratio: 1;\n  background: linear-gradient(135deg, #a98bff, #ff6fb1);\n}<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Percentages are measured against the element&#8217;s width for horizontal radii and its height for vertical ones. If two neighbouring radii add up to more than 100% of a side, the browser scales all the radii down proportionally until they fit, so you can&#8217;t break the shape with large numbers; you just get rounder results.<\/p>\n\n\n\n<figure class=\"wp-block-table\"><div class=\"table-scroll\" tabindex=\"0\" role=\"region\" aria-label=\"Scrollable table\"><table><thead><tr><th>Corner<\/th><th>Horizontal (before the slash)<\/th><th>Vertical (after the slash)<\/th><\/tr><\/thead><tbody><tr><td>Top left<\/td><td>1st value<\/td><td>5th value<\/td><\/tr><tr><td>Top right<\/td><td>2nd value<\/td><td>6th value<\/td><\/tr><tr><td>Bottom right<\/td><td>3rd value<\/td><td>7th value<\/td><\/tr><tr><td>Bottom left<\/td><td>4th value<\/td><td>8th value<\/td><\/tr><\/tbody><\/table><\/div><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">What values make a good blob?<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Values between 20% and 80% give smooth, rounded shapes. Pair a small value with a large one on the same corner, such as 30% horizontal and 70% vertical, to stretch the curve and break the symmetry. Values close to 0% create flat sides, which make the shape look more like a pebble or a rounded rectangle. The quickest way to find a shape you like is to randomise until something looks right, then fine-tune.<\/p>\n\n\n<aside class=\"tool-card tool-card--inline\"><span class=\"swatch\" style=\"background:radial-gradient(circle at 30% 30%,#ffd166,#ff7a59)\" aria-hidden=\"true\"><\/span><div class=\"tool-card__body\"><p class=\"tool-card__eyebrow\">Free tool<\/p><p class=\"tool-card__name\">CSS blob generator<\/p><p class=\"tool-card__blurb\">Organic shapes from the eight-value border-radius syntax.<\/p><\/div><a class=\"btn primary\" href=\"https:\/\/refracttools.com\/blob-generator\/\">Try it free <span aria-hidden=\"true\">\u2192<\/span><\/a><\/aside>\n\n\n\n<h2 class=\"wp-block-heading\">How do you animate a CSS blob?<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Browsers can interpolate between any two <code>border-radius<\/code> values, so a pair of keyframes gives a slow, living shape:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>.blob {\n  animation: morph 12s ease-in-out infinite alternate;\n}\n\n@keyframes morph {\n  from { border-radius: 30% 70% 70% 30% \/ 30% 30% 70% 70%; }\n  to   { border-radius: 60% 40% 30% 70% \/ 60% 30% 70% 40%; }\n}\n\n@media (prefers-reduced-motion: reduce) {\n  .blob { animation: none; }\n}<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Keep it slow, ten seconds or more per cycle, so it reads as ambient movement rather than a distraction. A gentle <code>rotate<\/code> in the same animation adds variety. Because <code>border-radius<\/code> changes trigger repaints, use animated blobs for one or two decorative elements, not dozens.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Where do blobs work well in a design?<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Behind product shots<\/strong> or illustrations, to give a cut-out image a soft backdrop.<\/li>\n\n\n<li><strong>Avatar and team photo frames<\/strong>, for a friendlier feel than circles.<\/li>\n\n\n<li><strong>Hero section accents<\/strong>, blurred with <code>filter: blur()<\/code> into soft colour clouds.<\/li>\n\n\n<li><strong>Section dividers and badges<\/strong> where a rectangle feels too rigid.<\/li>\n<\/ul>\n\n\n\n<div class=\"wp-block-group is-style-refract-callout is-layout-constrained wp-block-group-is-layout-constrained\">\n<p class=\"wp-block-paragraph\"><strong>Images in blobs:<\/strong> Apply the same <code>border-radius<\/code> directly to an <code>&lt;img&gt;<\/code> with <code>object-fit: cover<\/code>, or to a wrapper with <code>overflow: hidden<\/code>, and the photo is clipped to the blob. For arches, waves and other shapes, see <a href=\"\/blog\/css-techniques\/css-image-shapes\/\">shaping images with CSS<\/a>.<\/p>\n<\/div>\n\n\n\n<h2 class=\"wp-block-heading\">How do you make soft, blurred blob backgrounds?<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Many current landing pages use blurred blobs of colour behind the content, sometimes with frosted glass cards on top. Position two or three blobs absolutely inside a section, blur them heavily, and keep them behind the text:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>.section { position: relative; isolation: isolate; overflow: hidden; }\n\n.section::before {\n  content: \"\";\n  position: absolute;\n  z-index: -1;\n  inset: 10% auto auto 5%;\n  width: 40%;\n  aspect-ratio: 1;\n  border-radius: 40% 60% 55% 45% \/ 50% 40% 60% 50%;\n  background: #a98bff;\n  filter: blur(60px);\n  opacity: .6;\n}<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Large blurs are relatively expensive to paint, so avoid animating them on long pages, and check text contrast against the brightest part of the blob. Pair them with the <a href=\"https:\/\/refracttools.com\/glassmorphism-generator\/\">glassmorphism generator<\/a> for the frosted card look.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">CSS blob or SVG blob?<\/h2>\n\n\n\n<figure class=\"wp-block-table\"><div class=\"table-scroll\" tabindex=\"0\" role=\"region\" aria-label=\"Scrollable table\"><table><thead><tr><th><\/th><th>CSS border-radius blob<\/th><th>SVG blob<\/th><\/tr><\/thead><tbody><tr><td>Code<\/td><td>One line<\/td><td>A path with many points<\/td><\/tr><tr><td>Scaling<\/td><td>Follows the element automatically<\/td><td>Follows the viewBox<\/td><\/tr><tr><td>Animation<\/td><td>Simple keyframes between two values<\/td><td>Needs matching point counts or a library<\/td><\/tr><tr><td>Shapes possible<\/td><td>Smooth, rounded, always convex-ish<\/td><td>Anything, including sharp points and dents<\/td><\/tr><tr><td>Best for<\/td><td>Backgrounds, frames, decorative accents<\/td><td>Illustrations, logos, complex outlines<\/td><\/tr><\/tbody><\/table><\/div><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">A <code>border-radius<\/code> blob can never have an inward dent, because every corner curves outwards. If you need a shape with a concave edge, draw it as an SVG and use it as a mask; the <a href=\"https:\/\/refracttools.com\/image-shape-masks\/\">image shape masks<\/a> tool and our guide to <a href=\"\/blog\/css-techniques\/svg-data-uri-css\/\">SVG data URIs in CSS<\/a> cover that.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Make a blob<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Press randomise in the <a href=\"https:\/\/refracttools.com\/blob-generator\/\">CSS blob generator<\/a> until you find a starting shape, adjust each corner&#8217;s horizontal and vertical radius, pick a solid or gradient fill and copy the CSS. &#8220;Paste into&#8221; rewrites it for Elementor, Divi, Bricks, Breakdance or the block editor. For the fill, the <a href=\"https:\/\/refracttools.com\/css-gradient-generator\/\">CSS gradient generator<\/a> and our <a href=\"\/blog\/css-techniques\/css-gradients-guide\/\">guide to CSS gradients<\/a> help.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><em>Last checked: October 2026.<\/em><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><em>Sources: <a href=\"https:\/\/developer.mozilla.org\/en-US\/docs\/Web\/CSS\/border-radius\" rel=\"noopener\" target=\"_blank\">MDN: border-radius<\/a>, <a href=\"https:\/\/www.w3.org\/TR\/css-backgrounds-3\/#corner-overlap\" rel=\"noopener\" target=\"_blank\">W3C CSS Backgrounds and Borders: corner overlap<\/a>.<\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Organic blob shapes need only one line of CSS. How the eight-value border-radius syntax works, which values look good, how to animate a morphing blob, and when to use SVG instead.<\/p>\n","protected":false},"author":1,"featured_media":157,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_refract_tool":"blob-generator","footnotes":""},"categories":[24],"tags":[52,4,13],"class_list":["post-158","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ui-design","tag-animation","tag-css-generators","tag-ui-design"],"_links":{"self":[{"href":"https:\/\/refracttools.com\/blog\/wp-json\/wp\/v2\/posts\/158","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/refracttools.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/refracttools.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/refracttools.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/refracttools.com\/blog\/wp-json\/wp\/v2\/comments?post=158"}],"version-history":[{"count":1,"href":"https:\/\/refracttools.com\/blog\/wp-json\/wp\/v2\/posts\/158\/revisions"}],"predecessor-version":[{"id":160,"href":"https:\/\/refracttools.com\/blog\/wp-json\/wp\/v2\/posts\/158\/revisions\/160"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/refracttools.com\/blog\/wp-json\/wp\/v2\/media\/157"}],"wp:attachment":[{"href":"https:\/\/refracttools.com\/blog\/wp-json\/wp\/v2\/media?parent=158"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/refracttools.com\/blog\/wp-json\/wp\/v2\/categories?post=158"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/refracttools.com\/blog\/wp-json\/wp\/v2\/tags?post=158"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}