Build an SVG morph animation slider for a fictional sparkling tonic, Sola, with five flavours: Yuzu and Ginger (#f5c542 on #fbf3d6), Blood Orange (#ec5b3c on #fde4da), Cucumber and Mint (#4fbf8b on #dff4e8), Hibiscus (#c8326e on #fadfe9) and Blueberry and Lavender (#6467d8 on #e6e6fb). Left, a stage with a large organic blob drawn as one SVG path through 12 points, smoothed with Catmull-Rom curves; each flavour has its own radius pattern from two sine waves. The slider position is a decimal, so between flavours the 12 radii, the rotation, the blob colour and the page background are blended with a smoothstep, and dragging scrubs the morph live. A second, larger blob at 35% opacity morphs behind it and both breathe gently. In front, a CSS drinks can (silver rims, side shading, a white band with the flavour) tilts with the drag speed and bobs. Garnishes drawn in SVG (citrus wheels, leaves, petals, berries) float in and out, and a huge tinted flavour word slides behind. Right, the name, a one line note, chips, "£24 for 12", an "Add a case" button, prev and next buttons and five colour dots. Drag snaps with momentum; arrow keys work; reduced motion stops the breathing.
Written by Informeek Studio to recreate this design. Prompts are not deterministic, so running it again gives a similar result, not an identical one.
Use it in three steps
- Copy the prompt with the button above.
- Paste it into your AI site builder, or any AI chat that writes code.
- Make it yours by giving each slide your own colour and shape.
About this SVG morph animation
In this SVG morph animation the shape belongs to the slider, so it changes exactly as far as you drag. The blob behind the can is a single path through twelve points, and every flavour has its own set of distances from the centre, so as you drag from one flavour to the next the points travel between the two sets. Hold your finger halfway and the shape stays halfway, colour and all.
Everything else follows the same number. The page background blends between pale tints, the can leans with the speed of your drag, garnishes drift in for the new flavour and a huge tinted word slides past behind. Let go and the slider eases to the nearest flavour, and the blob keeps breathing gently while it waits.
Why the prompt works
- It explains how to keep a morph smooth, the same twelve points for every shape, joined with Catmull-Rom curves.
- It drives everything from one decimal position, so drag, buttons and keys all look identical.
- It lists every flavour with both colours, the strong one and its tint.
- It turns off the breathing for people who prefer less motion.
Where to use it
Drinks, skincare and food ranges, colourway pickers and playful product launches with three to six variants.
The prompt is shared under CC BY 4.0. Reuse it freely, including commercially, with a credit linking back to this page.