CSS 3D Transform Sandbox – Online Rotate Translate Preview
Adjust rotateX/Y/Z and translate to see a 3D box in real time. Copy optimized CSS transform.
UD5 Toolkit
transform-origin property defines the pivot point around which a CSS transform (like rotate, scale, or skew) is applied. By default, this point is at the center of the element (50% 50%). Changing it allows you to control where the transformation "anchors" — for example, making an element rotate around its top-left corner instead of its center.
0% 0% refers to the top-left corner, 50% 50% is the center, and 100% 100% is the bottom-right corner. The X-axis runs horizontally (left to right), and the Y-axis runs vertically (top to bottom). You can also use values beyond 0–100% (like -20% or 120%) to place the origin outside the element.
top, bottom, left, right, and center. You can combine them like top left (equivalent to 0% 0%), center right (100% 50%), or bottom center (50% 100%). The default is center center which equals 50% 50%.
transform-origin: center center, an element spins in place like a wheel. Move the origin to top left, and the element swings like a door hinged at that corner. This is especially useful for animations like opening doors, swinging pendulums, or creating orbit effects.
-50% or 150% to position the origin outside the element's bounding box. This creates orbital effects where the element rotates around a distant point, or scales from an external anchor. It's a powerful technique for advanced animations and creative UI effects.
50% 50% (or center center). This means all transformations — rotate, scale, skew — pivot around the exact center of the element unless you specify otherwise. This is the most intuitive default for general use cases.
rotateX(), rotateY(), and perspective(), the transform-origin property accepts a third Z-axis value (e.g., transform-origin: 50% 50% 100px). This controls the depth pivot point, enabling complex 3D animations and parallax effects.
transform-origin on the element before defining @keyframes. The origin remains constant throughout the animation. For dynamic origin changes during animation, you'd need to include transform-origin inside the keyframe steps — though browser support for animating this property is limited. Consider using multiple elements or JavaScript for complex origin-shifting animations.
transform-origin has excellent browser support — it works in all modern browsers including Chrome, Firefox, Safari, Edge, and Opera, as well as IE10+. For mobile, it's supported on iOS Safari and Android Chrome. Just remember to use vendor prefixes (-webkit-, -moz-) if you need to support very old browser versions.
Adjust rotateX/Y/Z and translate to see a 3D box in real time. Copy optimized CSS transform.
Create CSS animations and transitions without coding. Define keyframes, easing, and duration. Copy the @keyframes and animation code instantly.
Create a looping animated gradient background with multiple color stops. Copy the complete CSS keyframes. Eye‑catching.
See how `animation‑composition: replace, add, accumulate` works by layering animations on the same property. Understand the spec.
Create a 'drawing' effect for any SVG path. Adjust speed and delay. Copy the CSS and SVG code. No JS needed.
Design a layout where nested grids share track sizes with their parent via subgrid. Copy the complete CSS.
Paste your CSS and see warnings for properties that have limited browser support. Links to CanIUse. Modernize safely.
Write a compute shader in WGSL and run it in the browser. See the output on a canvas. Learn WebGPU. Real‑time compilation.
Limit browser gestures on an element: pan‑x, pinch‑zoom, manipulation. Draw on a canvas to test. Mobile dev helper.
Create complex linear gradients with any number of color stops, exact angles, and length units. Live preview and CSS code.
Style underlines, overlines, and strike-throughs with colors, wavy styles, and thickness. Modern CSS text‑decoration.
Design a button or card that glows on hover. Adjust shadow color, spread, and transition. Copy the CSS. Rich UI.
Create a realistic letterpress (debossed) text effect using CSS text‑shadow and background. Adjust depth and light direction. Copy code.
Generate a subtle noise/grain texture as a CSS background pattern. Adjust opacity and size. For that film look.
Create a customizable checkerboard or grid background using pure CSS gradients. Adjust cell size and colors. Copy the code.
Upload two images and apply CSS blend modes (multiply, screen, overlay, etc.). See the result and copy the filter CSS. Pure frontend.
Create a pure CSS countdown timer with a flipping number effect. Adjust duration and style. No JavaScript needed for display.
Create a glowing or rotating border animation around an element. Copy the CSS keyframes. Pure CSS magic.
Create a custom HTML/CSS progress bar with percentage, colors, and animation. Copy the code. Modern UI element.
Design a realistic neon sign text with multiple layers of glow. Copy the CSS and HTML. Perfect for headers.
A replica of the famous Flexbox Froggy game: solve alignment puzzles by writing CSS. Progress saved locally. Fun frontend learning.
Experiment with CSS Grid properties visually. Add rows, columns, and areas. See the grid in action and copy the code.
Fetch a website's CSS and extract :root custom properties (‑‑color) to reveal its design token palette. For learning and inspiration.
A customisable Matrix‑style digital rain animation. Adjust speed, characters, and colors. Fullscreen mode for ambiance.
Paste a Kanji and watch it drawn stroke by stroke with numbered sequence. Excellent for learners. Static data set.
Recreate the target CSS linear gradient by adjusting stops and colors. A unique game for front‑end developers to master gradients.
Paste Lottie JSON code or upload a .json file and see the animation play. Control speed and loop. Perfect for developers.
Browse and search all Font Awesome 6 icons with preview, class name, and unicode. Copy the HTML snippet. Perfect for web developers.
Create text with a gradient fill using CSS background-clip. Configure colors and direction. Copy the code. Works in modern browsers.
A complete, searchable list of all 140+ named HTML/CSS colors with their hex codes and color previews. Click to copy code. Essential web reference.