SVG morphing
Morphing de SVG · SVG morph · Path morphing · Trasformazione di tracciati
One vector path smoothly turns into another, like a play icon becoming pause or a blob that breathes and changes shape. The shape's points are interpolated one by one, with no crossfade.
- Era
- 2014 – today
- Use
- Mainstream
Live demo
View code
<main>
<svg class="blob" viewBox="0 0 200 200" aria-hidden="true">
<defs><linearGradient id="g" x1="0" y1="0" x2="1" y2="1"><stop offset="0" stop-color="#F25F5C"/><stop offset="1" stop-color="#FFE066"/></linearGradient></defs>
<path fill="url(#g)" d="M100 22C146 22 178 54 178 100C178 146 146 178 100 178C54 178 22 146 22 100C22 54 54 22 100 22Z">
<animate attributeName="d" dur="6s" repeatCount="indefinite" calcMode="spline" keyTimes="0;.25;.5;.75;1" keySplines=".65 0 .35 1;.65 0 .35 1;.65 0 .35 1;.65 0 .35 1"
values="M100 22C146 22 178 54 178 100C178 146 146 178 100 178C54 178 22 146 22 100C22 54 54 22 100 22Z;
M100 10C120 70 130 80 190 100C130 120 120 130 100 190C80 130 70 120 10 100C70 80 80 70 100 10Z;
M110 30C170 20 186 80 160 120C140 170 70 190 40 150C10 110 50 40 110 30Z;
M100 40C150 0 200 60 170 110C150 150 120 190 100 160C80 190 50 150 30 110C0 60 50 0 100 40Z;
M100 22C146 22 178 54 178 100C178 146 146 178 100 178C54 178 22 146 22 100C22 54 54 22 100 22Z"/>
</path>
</svg>
<div class="side">
<h1>Forme<br>che cambiano</h1>
<button aria-label="Riproduci"><svg viewBox="0 0 100 100"><path fill="#140F2D" d="M32 25L52 37.5L52 62.5L32 75ZM52 37.5L74 50L74 50L52 62.5Z">
<animate attributeName="d" dur="3s" repeatCount="indefinite" calcMode="spline" keyTimes="0;.15;.5;.65;1" keySplines="0 0 1 1;.65 0 .35 1;0 0 1 1;.65 0 .35 1"
values="M32 25L52 37.5L52 62.5L32 75ZM52 37.5L74 50L74 50L52 62.5Z;M32 25L52 37.5L52 62.5L32 75ZM52 37.5L74 50L74 50L52 62.5Z;M30 25L44 25L44 75L30 75ZM56 25L70 25L70 75L56 75Z;M30 25L44 25L44 75L30 75ZM56 25L70 25L70 75L56 75Z;M32 25L52 37.5L52 62.5L32 75ZM52 37.5L74 50L74 50L52 62.5Z"/></path></svg></button>
</div>
</main>
<script>
if(matchMedia('(prefers-reduced-motion: reduce)').matches){document.querySelectorAll('svg').forEach(s=>s.pauseAnimations&&s.pauseAnimations())}
</script> body{margin:0;height:100vh;display:grid;place-items:center;background:radial-gradient(circle at 30% 40%,#247BA055,transparent 60%),#140F2D;color:#F7F7FF;font-family:'Space Grotesk',sans-serif;overflow:hidden}
main{display:flex;align-items:center;gap:6vw;max-width:92vw}
.blob{width:min(200px,42vw);filter:drop-shadow(0 20px 30px #F25F5C55)}
h1{font-size:clamp(26px,6vw,40px);line-height:1;margin:0 0 18px}
button{width:64px;height:64px;border-radius:50%;border:0;background:#70C1B3;padding:14px;box-shadow:0 10px 24px -8px #70C1B3aa;cursor:pointer}
button svg{width:100%;height:100%;display:block} Characteristics
- Interpolating the d attribute between shapes
- Same number and type of path commands
- Icons that change state instead of swapping
- Organic blobs breathing in a loop
- Soft easing to avoid harsh distortions
Palette
Click a swatch to copy it
Typography
Headings · Space Grotesk SVG morphing
Body · Space Grotesk One vector path smoothly turns into another, like a play icon becoming pause or a blob that breathes and changes shape. The shape's points are interpolated one by one, with no crossfade.
Motion
- Easing
cubic-bezier(0.65, 0, 0.35, 1) (ease-in-out)- Typical duration
- 300–500 ms per le icone; 3–8 s per i blob in loop
- Techniques
- SMIL animate su attributo d, CSS d: path(), GSAP MorphSVGPlugin, flubber.js, anime.js, Lottie
Accessibility (reduced motion)
Swap straight to the final shape; blobs stay still in one pose.
Prompt for your agent
Copy and paste into your prompt to have an agent or image generator reproduce this style.
For web pages and UI
Design the web page or interface in this style: SVG morphing (Morphing de SVG, SVG morph). One vector path smoothly turns into another, like a play icon becoming pause or a blob that breathes and changes shape. The shape's points are interpolated one by one, with no crossfade. Characteristics: Interpolating the d attribute between shapes, Same number and type of path commands, Icons that change state instead of swapping, Organic blobs breathing in a loop, Soft easing to avoid harsh distortions. Palette: #140F2D, #F25F5C, #FFE066, #247BA0, #70C1B3, #F7F7FF. Typography: headings in Space Grotesk, body text in Space Grotesk (Google Fonts or equivalents). Mood: playful, organic, energetic. Motion: easing cubic-bezier(0.65, 0, 0.35, 1) (ease-in-out), typical duration 300–500 ms per le icone; 3–8 s per i blob in loop; techniques: SMIL animate su attributo d, CSS d: path(), GSAP MorphSVGPlugin, flubber.js, anime.js, Lottie. With prefers-reduced-motion: Swap straight to the final shape; blobs stay still in one pose. References: GSAP MorphSVGPlugin, flubber.js, icone animate di Material Design (2014), esperimenti SVG di CodePen.
For images
Create the image in this visual style: SVG morphing (Morphing de SVG, SVG morph). One vector path smoothly turns into another, like a play icon becoming pause or a blob that breathes and changes shape. The shape's points are interpolated one by one, with no crossfade. Characteristics: Interpolating the d attribute between shapes, Same number and type of path commands, Icons that change state instead of swapping, Organic blobs breathing in a loop, Soft easing to avoid harsh distortions. Keywords: vector shape morphing between blob and star, onion-skin sequence of intermediate path frames, play icon turning into pause icon, flat bold colors on deep indigo, smooth bezier curves, clean motion design frame. Palette: #140F2D, #F25F5C, #FFE066, #247BA0, #70C1B3, #F7F7FF. Mood: playful, organic, energetic. Avoid: photographic texture, pixelated edges, 3d shading, cluttered layout.
Relations
Derives from
Similar to
References
- GSAP MorphSVGPlugin
- flubber.js
- icone animate di Material Design (2014)
- esperimenti SVG di CodePen