CSS Transition Playground - Online Visual Easing Curve Builder
Choose a property, duration, and bezier curve. Trigger the transition and see the animation. Copy the complete CSS rule.
UD5 Toolkit
Interactive pill shape animation generator — inspired by Apple's Dynamic Island
border-radius value equal to or greater than half the element's height, combined with fixed dimensions.
width and height on a div, then apply a border-radius equal to at least half the height. For example: width: 126px; height: 37px; border-radius: 20px;. The large border-radius forces the left and right edges to become fully rounded semicircles, producing the characteristic pill or capsule shape. Add background-color for the fill and optionally box-shadow for depth.
@keyframes and the animation property. Common animations include: breathing (gentle scale), pulse (stronger scale with glow), expand & shrink (horizontal scaleX transform), bounce (translateY), glow pulse (box-shadow animation), and shimmer (animated gradient background). Use animation: name duration easing infinite; for continuous effects. Combine with transition for smooth state changes.
border-radius, transform, animation, box-shadow) have excellent cross-browser support. For older browsers, the pill shape will still render correctly; only the animations may fall back to a static display. Use @supports queries if you need graceful degradation.
vw, %, or clamp() for width and height. For example: width: clamp(80px, 20vw, 200px);. You can also use CSS media queries to adjust the pill dimensions at different breakpoints. The border-radius should be recalculated — using border-radius: 50vh or a sufficiently large value like 999px ensures the pill shape is maintained regardless of size.
border-radius: 50% creates a perfect circle or ellipse (depending on the element's aspect ratio). A pill shape uses a fixed large pixel value (like 20px) that's at least half the element's height, creating semicircular ends connected by straight edges. This produces the distinctive capsule form. If you use border-radius: 50% on a wide element, it becomes an oval, not a pill. For the classic pill, use a fixed radius ≥ half the height.
<i> for icons, <span> for text, or <img> for avatars) inside the pill div. Use Flexbox (display: flex; align-items: center; gap: 6px; padding: 0 12px;) to align content horizontally. For the Dynamic Island effect, the content can change based on the pill's expanded state. Use overflow: hidden; to keep content neatly clipped within the rounded shape.
transform (scale, translate, rotate) and opacity. Avoid animating width, height, or border-radius directly for best performance — use transform: scaleX() for width changes instead. The box-shadow animation (glow effects) is slightly more expensive but still smooth on modern devices. Use will-change: transform sparingly for complex animations.
Choose a property, duration, and bezier curve. Trigger the transition and see the animation. Copy the complete CSS rule.
Create a glowing or rotating border animation around an element. Copy the CSS keyframes. Pure CSS magic.
Apply text‑wrap: balance to headings and paragraphs. See the visual difference and copy the CSS. Avoid orphans.
Design a button or card that glows on hover. Adjust shadow color, spread, and transition. Copy the CSS. Rich UI.
Apply an emboss filter to your photo. Choose direction and depth. Gives a 3D carved stone look. Pure canvas.
Upload two portraits and create a simple morph animation between them. Download as GIF. Local canvas magic.
Set a short timer with a themed emoji animation (e.g., pizza cooking). A playful visual countdown.
Turn your message into a scenic mountain emoji art panel. Choose different landscapes. Copy and paste anywhere.
Apply text‑emphasis marks (filled dot, open circle, etc.) with color. Ideal for East Asian typography. Copy the style.
Type any CSS selector with :hover/:active/:focus and see the styles applied live. Perfect for debugging interaction states.
Explore the new two‑value display syntax like `display: block flex`. See what each inner/outer pair does visually.
Create a zoom lens effect for product images. Move the cursor to magnify. Copy the HTML/CSS/JS code.
Plan insulin or other injection sites with a visual body map and date log. Prevent lipohypertrophy.
The original arcade Pong recreated in HTML5. Play against AI or local two‑player. Score up to 11 and win. Pure retro fun.
Enter task names, start dates, and durations to generate a simple Gantt chart as an image. Quick project view.
Paste your CSS and see a static fallback version where var() is replaced with the default value. For legacy support.
Type any condition and see the result of the ternary operator. Understand truthy/falsy values. Quick learning tool.
Set start date and egg type (chicken, duck, quail) to generate a hatching timeline with milestone alerts (lockdown, pip, hatch). Local only.
Use the abs() and sign() CSS functions to create interesting layouts. See computed values live. Cutting‑edge CSS.
Enter a mathematical function for dx and dy and see the vector field arrows. Perfect for studying differential equations.
Preview the Gravatar image associated with any email address. Generate the correct Gravatar URL. Handy for avatar debugging.
Add recurring bills with amounts and see a monthly calendar with due date indicators. Simple finance organizer.
Track daily mood with emoji selection and optional notes. See weekly/monthly mood trends in a color-coded chart. All data stored privately in localStorage.
Select an emoji that matches your mood and log it to a simple calendar. Self‑awareness tool. Local only.
Issue and redeem Private State Tokens (formerly Trust Tokens). Understand how they help detect bots without cookies.
Paste text and see a sorted count of all emojis used. Find your most‑used emoji. Fun analytics. All local.
Generate a hash showing how trackers can fingerprint your browser (canvas, WebGL, fonts). Educational and privacy‑aware.
Apply a realistic lens blur (bokeh) to an image. Simulate shallow depth of field. Adjust aperture shape and intensity. Local canvas.
Get a humorous, randomly generated daily horoscope for any zodiac sign. Not real astrology; purely for laughs.
Get a random, lighthearted daily horoscope based on your zodiac sign. For entertainment only. No personal data collected.