0Support

CSS transform playground

Compose 2D and 3D transforms, compare how function order changes the result, and move the origin before copying the generated code.

Ask AI

CSS transform playground

Response generated with openai/gpt-5.4-nano. AI can make mistakes. Always review the result.
Transform space

The dashed outline preserves the untransformed reference.

2D
HTML
<div class="transform-demo">
  CSS transform
</div>
Tailwind CSS
Some classes with arbitrary values can be replaced by native classes, depending on the value and your Tailwind CSS configuration.
<div class="inline-[250px] block-[250px] grid place-items-center rounded-2xl bg-linear-to-br from-orange-500 to-blue-600 text-slate-50 [transform:translate(32px,_-18px)_rotate(-12deg)_scale(1.05,_1.05)_skew(0deg,_0deg)] [transform-origin:50%_50%]">
  CSS transform
</div>
CSS
.transform-demo {
  inline-size: 250px;
  block-size: 250px;
  background: linear-gradient(135deg, #f97316, #2563eb);
  display: grid;
  place-items: center;
  border-radius: 1rem;
  color: #f8fafc;
  transform: translate(32px, -18px) rotate(-12deg) scale(1.05, 1.05) skew(0deg, 0deg);
  transform-origin: 50% 50%;
}