CSS generator: gradients, box and text shadows, clip paths and easing curves
Build gradients, shadows, clip paths and easing curves, see the result as you change it, and copy the CSS.
Build gradients, shadows, clip paths and easing curves, see the result as you change it, and copy the CSS.
Make a background blend for your page and copy the CSS while you preview it. FluffyBench CSS Generator also has separate controls for box shadows, text shadows, clipped shapes and animation timing.
A gradient is like a ribbon with colored pins: each stop fixes a color at a position, and the browser blends between the pins.
A linear gradient from its first stop to its last
The left card names the color and position where the linear gradient begins.
The right card marks the final color and position; the ribbon blends between these stops.
The arrow and label show the direction used by this linear gradient example.
Stop positions decide how much room colors have to blend. Put both stops at the same position and they meet at a sharp edge.
FluffyBench Color Converter can translate a stop color into another notation.
For this sunset, 5 sampled stops carry the sky's broad changes from blue to pink, red and near-black.
The sunset CSS is background-image: linear-gradient(180deg, #333F96 0%, #4E58AB 15%, #BC95BF 45%, #B33923 88%, #1E0203 100%);
Here's the five-stop sunset in FluffyBench CSS Generator, from Type to Copy CSS. You can use 2 to 8 stops, positioned from 0% to 100%.
Linear sends colors along a straight line. Radial spreads them outward from a center, so it's useful when the first color should sit inside the second.
For an off-center glow, choose Radial and Circle; Center X and Center Y place its starting color.
Lower opacity lets the color underneath show through. Here both stops fade over the same lavender base.
For a softer linear blend, lower both stops' Opacity. Base and Background let you try it against different preview colors.
The preview uses a sample box. Your element's proportions and surrounding colors affect how the blend looks, so judge the result where you'll use it.
CSS is the output here: a background-image declaration, not a picture file. Your destination needs a place to apply CSS to an element.
If you're unsure where the copied line belongs, the guide to generated gradient CSS explains the property and value.
Each Type returns its own declaration in the same CSS pane. Copy CSS stays in the same place for all five effects.
Choose Box shadow under Type to add depth around a box. Offset X and Offset Y move its shadow sideways and down; Blur softens its edge, Spread grows it, and Inset puts it inside.
Choose Text shadow under Type for a shadow that follows the letters. The same offset and blur controls act on the word's outline.
Choose Clip path under Type to trim an element's outline. Shape offers Inset, Circle, Ellipse and Polygon.
Choose Easing under Type to change an animation's pace. Here the dot covers more ground before the midpoint, then slows toward the end.
An easing curve maps elapsed time across to progress upward. X1/Y1 place the first handle and X2/Y2 place the second; the handles bend the path between start and finish.
Use Replay in FluffyBench to judge the pace with your current curve.
A later stop can't have a lower position than the row before it. FluffyBench clears Preview and CSS while positions are out of order.
Out of order: 88% followed by 45%
Corrected: 0% followed by 100%
If clipboard access is refused, FluffyBench selects the CSS for manual copying and explains what happened in the status message.
A color that won't parse needs HEX, RGB or HSL notation, with opacity in its separate field. The color notation guide explains those forms.
FluffyBench Color Converter helps when a stop's notation is unfamiliar: it checks one color and returns its HEX, RGB and HSL spellings.